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; | |
| 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 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
| const todoMachine = Machine({ | |
| id: "todo", | |
| initial: "reading", | |
| context: { | |
| completed: false | |
| }, | |
| states: { | |
| reading: { | |
| on: { | |
| SET_COMPLETED: { |
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
| const playheadMachine = Machine({ | |
| id: 'playhead', | |
| initial: 'idle', | |
| context: { | |
| fps: 2, | |
| events: [], | |
| lastEmittedEvent: null, | |
| emitted: [], | |
| playhead: 0 | |
| }, |
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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
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
| const machine = Machine({ | |
| initial: 'idle', | |
| context: { | |
| userId: null, | |
| projectId: null, | |
| revision: 0 | |
| }, | |
| type: 'parallel', | |
| states: { |
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
| const myMachine = Machine({ | |
| id: "machine", | |
| initial: "idle", | |
| context: { | |
| id: null, | |
| revision: 0, | |
| isOwner: false, | |
| isAuthenticated: true | |
| }, | |
| states: { |
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
| const myMachine = Machine({ | |
| id: "machine", | |
| initial: "idle", | |
| context: { | |
| id: null, | |
| revision: 0, | |
| isOwner: false, | |
| isAuthenticated: false |
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
| const machine = Machine({ | |
| id: 'doctor', | |
| initial: 'idle', | |
| states: { | |
| idle: { | |
| type: 'parallel', | |
| states: { | |
| aok: { | |
| initial: 'idle', | |
| states: { |
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\App; | |
| use GraphQL\Error\DebugFlag; | |
| use GraphQL\GraphQL; | |
| use GraphQL\Utils\BuildSchema; | |
| use GuzzleHttp\Psr7\Response; | |
| use Psr\Http\Message\ResponseInterface; | |
| use Psr\Http\Message\ServerRequestInterface; |