This file contains 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 Vendor\Site\Command; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\Cli\CommandController; | |
use Neos\Flow\ResourceManagement\CollectionInterface; | |
use Neos\Flow\ResourceManagement\PersistentResource; | |
use Neos\Flow\ResourceManagement\ResourceManager; | |
use Neos\Flow\ResourceManagement\ResourceRepository; |
This file contains 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(Vendor.Site:TestImageFormatSwitch) < prototype(Neos.Fusion:Component) { | |
@styleguide { | |
title = "Test Image Format Switch" | |
props { | |
imageSource = Sitegeist.Kaleidoscope:DummyImageSource | |
} | |
useCases { | |
square { |
This file contains 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
# @see https://symfony.com/doc/current/components/console/helpers/questionhelper.html | |
$bundles = ['AcmeDemoBundle', 'AcmeBlogBundle', 'AcmeStoreBundle']; | |
$question = new Question('Please enter the name of a bundle: ', 'FooBundle'); | |
$question->setAutocompleterValues($bundles); | |
$input = new SymfonyStringInput(''); | |
$output = new SymfonyConsoleOutput(); | |
$helper = new QuestionHelper(); |
This file contains 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
'Neos.Neos:Content': | |
options: | |
fusion: | |
prototypeGenerator: Neos\Neos\Domain\Service\DefaultContentPrototypeGenerator | |
This file contains 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(Vendow.Site:ThemedComponent) < prototype(Neos.Fusion:Component) { | |
name = null | |
theme = 'Theme1' | |
# all props | |
renderer = Neos.Fusion:Renderer { | |
type = ${props.theme + ':' + props.name} |
This file contains 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(Vendor.Site:Example) < prototype(Neos.Fusion:Component) { | |
foo = null | |
bar = null | |
renderer = Neos.Fusion:Component { | |
# pass all outer props to the renderer | |
@apply.props = ${props} | |
# alternatively pass explicit props to the renderer | |
foo = ${props.foo} |
This file contains 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 Sitegeist\NodeShippingService\Command; | |
use Neos\ContentRepository\Domain\Service\ImportExport\NodeExportService; | |
use Neos\ContentRepository\Domain\Service\ImportExport\NodeImportService; | |
use Neos\Flow\Annotations as Flow; | |
use Neos\Flow\Cli\CommandController; | |
use Neos\Neos\Exception as NeosException; | |
use Neos\Utility\Files; | |
use Neos\ContentRepository\Domain\Repository\NodeDataRepository; |
This file contains 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
{{/* | |
Create revion color "green" / "blue" from release number | |
*/}} | |
{{- define "project.revisioncolor" -}} | |
{{- if mod .Release.Revision 2 -}} | |
{{- printf "green" -}} | |
{{- else -}} | |
{{- printf "blue" -}} | |
{{- end -}} | |
{{- end -}} |
This file contains 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
foo = Neos.Fosion:Reduce { | |
items = ${something} | |
initialValue = ${[]} | |
# when the condition matches include the item into the result | |
# otherwise return sam array as before | |
itemReducer = ${ (__condition__) ? Array.push(carry, item) : carry} | |
#defaults | |
itemName = 'item' |
NewerOlder