Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from mficzel/prepareRelease
Browse files Browse the repository at this point in the history
TASK: Prepare comments and readme for release
  • Loading branch information
mficzel authored Dec 7, 2016
2 parents 884ac1c + 13bcd09 commit fd3308c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,30 +1,43 @@
<?php
namespace PackageFactory\AtomicFusion\TypoScriptObjects;

/**
* This file is part of the PackageFactory.AtomicFusion package
*
* (c) 2016
* Wilhelm Behncke <wilhelm.behncke@googlemail.com>
* Martin Ficzel <martin.ficzel@gmx.de>
*
* This package is Open Source Software. For the full copyright and license
* information, please view the LICENSE file which was distributed with this
* source code.
*/

use TYPO3\Flow\Annotations as Flow;
use TYPO3\TypoScript\TypoScriptObjects\ArrayImplementation;

/**
* A TypoScript Component-Object
*
* All properties except ``value`` are pushed into a context variable ``props``
* with that context the value is rendered
* All properties except ``renderer`` are pushed into a context variable ``props``
* afterwards the ``renderer`` is evaluated
*
* //tsPath value The variable to display a dump of.
* //tsPath renderer The variable to display a dump of.
* //tsPath * generic Fusion values that will be added to the ``props`` object in the context
* @api
*/
class ComponentImplementation extends ArrayImplementation
{
/**
* If you iterate over "properties" these in here should usually be ignored.
* For example additional properties in "Case" that are not "Matchers".
* Properties that are ignored and added to the props
*
* @var array
*/
protected $ignoreProperties = ['__meta', 'renderer'];

/**
* Return render value with the properties as ``props`` in the context
* Evaluate the fusion-keys and transfer the result into the context as ``props``
* afterwards evaluate the ``renderer`` with this context
*
* @return void|string
*/
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ prototype(Vendor.Site:Component) < prototype(PackageFactory.AtomicFusion:Compone
}
}
```

## Installation

PackageFactory.AtomicFusion is available via packagist. Just add `"packagefactory/atomicfusion" : "~1.0"` to the
require-dev section of the composer.json or run `composer require packagefactory/atomicfusion`.

We use semantic-versioning so every breaking change will increase the major-version number.

## License

see [LICENSE file](LICENSE)
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "packagefactory/atomicfusion",
"description": "Prototypes that help implementing atomic-design and a component-architecture in Neos.Fusion",
"type": "neos-package",
"require": {
"typo3/flow": "*"
"typo3/typoscript": "~2.3.0"
},
"name": "packagefactory/atomicfusion",
"autoload": {
"psr-0": {
"PackageFactory\\AtomicFusion": "Classes/"
Expand Down

0 comments on commit fd3308c

Please sign in to comment.