The context which ALL compile code runs and is injected into the __constructor as __construct(Runtime $runtime) lowest level of runtime is component runtime
If the runtime is used as a string (using echo), the render() method is invoken. If the render() method returns an instance of ResponseInterface, the body of the response is returned as string by default.
| Return | string |
The path to the compiled file that will be executed from the render() method inside the runtime polyfill.
| Return | string |
Exchange Bus between Runtime Polyfill and Compiled Code. Set data in the polyfill and access it in the compiled code.
| $section | string |
| $key | string |
| $value | mixed |
| Return | void |
Exchange Bus between Runtime Polyfill and Compiled Code. Get data in the compiled code that was set in the polyfill.
| $section | string |
| $key | string |
| $defaultValue | mixed |
| Return | mixed |
Access the Kernels DI Container Service
| $className | |
| Return | object |
Helper method to access the Request object, resolved from the DI Container.
| Return | Darken\Web\Request |
Create a new runtime instances. This "helper" ensures an object of type runtime (self) is returned and therefore the recommend way to create a new runtime instance.
| $className | string |
| $params | array |
| Return | self |
Renders the compiled file from renderFilePath() as string or ResponseInterface.
| Return | string|Psr\Http\Message\ResponseInterface |