$_eventManager
$_eventManager : \Cake\Event\EventManagerInterface|\Cake\Event\EventManager
Instance of the Cake\Event\EventManager this object is using to dispatch inner events.
Runs an application invoking all the PSR7 middleware and the registered application.
$_eventManager : \Cake\Event\EventManagerInterface|\Cake\Event\EventManager
Instance of the Cake\Event\EventManager this object is using to dispatch inner events.
$app : \Cake\Core\HttpApplicationInterface
$runner : \Cake\Http\Runner
eventManager(\Cake\Event\EventManager|null $events = null) : \Cake\Event\EventManager|$this
Get/set the application's event manager.
If the application does not support events and this method is used as a setter, an exception will be raised.
| \Cake\Event\EventManager|null | $events | The event manager to set. |
getEventManager() : \Cake\Event\EventManager
Get the application's event manager or the global one.
| None found |
setEventManager(\Cake\Event\EventManager $events) : $this
Get/set the application's event manager.
If the application does not support events and this method is used as a setter, an exception will be raised.
| \Cake\Event\EventManager | $events | The event manager to set. |
| None found |
dispatchEvent(string $name, array|null $data = null, object|null $subject = null) : \Cake\Event\Event
Wrapper for creating and dispatching events.
Returns a dispatched event.
| string | $name | Name of the event. |
| array|null | $data | Any value you wish to be transported with this event to it can be read by listeners. |
| object|null | $subject | The object that this event applies to ($this by default). |
| None found |
__construct(\Cake\Core\HttpApplicationInterface $app)
Constructor
| \Cake\Core\HttpApplicationInterface | $app | The application to use. |
| None found |
run(\Psr\Http\Message\ServerRequestInterface|null $request = null, \Psr\Http\Message\ResponseInterface|null $response = null) : \Psr\Http\Message\ResponseInterface
Run the request/response through the Application and its middleware.
This will invoke the following methods:
| \Psr\Http\Message\ServerRequestInterface|null | $request | The request to use or null. |
| \Psr\Http\Message\ResponseInterface|null | $response | The response to use or null. |
When the application does not make a response.
| None found |
emit(\Psr\Http\Message\ResponseInterface $response, \Zend\Diactoros\Response\EmitterInterface|null $emitter = null) : void
Emit the response using the PHP SAPI.
| \Psr\Http\Message\ResponseInterface | $response | The response to emit |
| \Zend\Diactoros\Response\EmitterInterface|null | $emitter | The emitter to use. When null, a SAPI Stream Emitter will be used. |
| None found |
getApp() : \Cake\Core\HttpApplicationInterface
Get the current application.
The application that will be run.
| None found |
setRunner(\Cake\Http\Runner $runner) : $this
Set the runner
| \Cake\Http\Runner | $runner | The runner to use. |
| None found |
bootstrap() : void
Application bootstrap wrapper.
Calls bootstrap() and events() if application implements EventApplicationInterface.
After the application is bootstrapped and events are attached, plugins are bootstrapped
and have their events attached.
| None found |