Neos\Flow\Core\Bootstrap::registerRequestHandler PHP Method

registerRequestHandler() public method

All registered request handlers will be queried if they can handle a request when the bootstrap's run() method is called.
public registerRequestHandler ( Neos\Flow\Core\RequestHandlerInterface $requestHandler ) : void
$requestHandler Neos\Flow\Core\RequestHandlerInterface
return void
    public function registerRequestHandler(RequestHandlerInterface $requestHandler)
    {
        $this->requestHandlers[get_class($requestHandler)] = $requestHandler;
    }

Usage Example

Esempio n. 1
0
 /**
  * Invokes custom PHP code directly after the package manager has been initialized.
  *
  * @param \Neos\Flow\Core\Bootstrap $bootstrap The current bootstrap
  * @return void
  */
 public function boot(\Neos\Flow\Core\Bootstrap $bootstrap)
 {
     $bootstrap->registerRequestHandler(new \Neos\Setup\Core\RequestHandler($bootstrap));
 }
All Usage Examples Of Neos\Flow\Core\Bootstrap::registerRequestHandler