This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "regexp" | |
| ) | |
| // EmailAddress Value Object | |
| type EmailAddress string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prototype(Some.Package:Component.ContentWithToc) < prototype(Neos.Fusion:Component) { | |
| blocks = Neos.Fusion:RawArray | |
| renderer = afx` | |
| <nav> | |
| <ul> | |
| <Neos.Fusion:Collection collection={props.blocks} itemName="block" @children="itemRenderer"> | |
| <li> | |
| <a href={'#c-' + iterator.cycle}>{block.label}</a> | |
| </li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| prototype(My.Package:Form.DefaultElement) < prototype(Neos.Fusion:Component) { | |
| # API | |
| id = '' | |
| name = '' | |
| label = '' | |
| value = null | |
| isRequired = false | |
| properties = Neos.Fusion:RawArray | |
| validationErrors = Neos.Fusion:RawArray |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Context: I'm trying to argue that DI (and DIC) are great, and DIC libs suck. | |
| // Happy to be proven wrong! | |
| final class Router { | |
| private $dependencies; | |
| public function __construct (Dependencies $dependencies) { | |
| $this->dependencies = $dependencies; | |
| // You might say that this is Service Locator, but it's not. This router is toplevel, | |
| // and toplevel must have access to dependencies. After that it can all just bubble nicely using proper DI. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - | |
| uriPattern: '{@action}/{segments}.html' | |
| defaults: | |
| '@package': 'Some.Package' | |
| '@controller': 'SomeController' | |
| '@action': 'index' | |
| '@format': 'html' | |
| routeParts: | |
| 'segments': | |
| handler: 'Some\Package\Routing\SegmentsRoutePart' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| namespace Some\Package\Command; | |
| use Neos\Flow\Annotations as Flow; | |
| use Neos\Flow\Cli\CommandController; | |
| class SomeCommand extends CommandController | |
| { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Some\Package | |
| use Neos\EventSourcing\Event\EventInterface; | |
| final class ExampleEvent implements EventInterface | |
| { | |
| /** | |
| * @var UserId | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Wwwision\Test\ViewHelpers\Link; | |
| use Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper; | |
| use Neos\FluidAdaptor\Core\ViewHelper; | |
| /** | |
| * Simple ViewHelper to create facet filter links | |
| * | |
| * Usage: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Some\Package\View; | |
| use TYPO3\Flow\Mvc\View\AbstractView; | |
| use TYPO3\Flow\Reflection\ObjectAccess; | |
| class SimpleTemplateView extends AbstractView | |
| { | |
| /** | |
| * @var array |