/**
  * @param \Drufony\Bridge\Event\GetCallableForPhase $event
  */
 public function onBootstrapEvent(GetCallableForPhase $event)
 {
     $bootstrap = $this->bootstrap;
     $callback = function () use($event, $bootstrap) {
         $phase = $event->getPhase();
         $bootstrap($phase);
     };
     $event->setCallable($callback);
 }