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 | |
declare(strict_types=1); | |
final class CatchUpWorkerCommandController extends CommandController { | |
public function __construct( | |
private readonly ContentRepositoryRegistry $contentRepositoryRegistry, | |
private readonly ProjectionCatchUpServiceFactory $projectionCatchUpServiceFactory, | |
) { | |
parent::__construct(); |
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
<Some.Package:ZipArchiveLink zip.files={['resource://Neos.Neos/Public/Images/Login/Logo.svg', 'resource://Neos.Neos/Public/Images/Login/Wallpaper.jpg']} filename="archive.zip"> | |
Download | |
</Some.Package:ZipArchiveLink> |
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
# Concrete assignments from roles to privileges can happen in your global /Configuration/Policy.yaml file | |
roles: | |
'Some.Distribution:Administrator': | |
privileges: | |
- privilegeTarget: 'Some.Package:AccessAnyProduct' | |
permission: GRANT | |
'Some.Distribution:User': |
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 | |
declare(strict_types=1); | |
use Behat\Behat\Context\Context; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Firebase\JWT\JWT; |
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
const nestedStates = { | |
initial: 'a1', | |
states: { | |
a1: { | |
on: { | |
FOO: "a2" | |
} | |
}, | |
a2: { | |
type: "final" |
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
const machine = Machine( | |
{ | |
id: "buyBook", | |
initial: "outside", | |
context: { | |
loggedIn: false, | |
subscription: null, | |
bookId: null, | |
initialLocation: null, | |
alreadySubscribedChosen: false |
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 | |
declare(strict_types=1); | |
namespace Some\Package; | |
use GuzzleHttp\Psr7\Response; | |
use Neos\Eel\Context; | |
use Neos\Eel\EelEvaluatorInterface; | |
use Psr\Http\Message\ResponseInterface; | |
use Psr\Http\Message\ServerRequestInterface; | |
use Psr\Http\Server\MiddlewareInterface; |
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
const todoMachine = Machine({ | |
id: "todo", | |
initial: "reading", | |
context: { | |
completed: false | |
}, | |
states: { | |
reading: { | |
on: { | |
SET_COMPLETED: { |
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
const playheadMachine = Machine({ | |
id: 'playhead', | |
initial: 'idle', | |
context: { | |
fps: 2, | |
events: [], | |
lastEmittedEvent: null, | |
emitted: [], | |
playhead: 0 | |
}, |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
NewerOlder