Ejemplo n.º 1
0
 /**
  * @param  BundleAbstract $bundle
  * @return BundleAbstract
  */
 public function addBundle(BundleAbstract $bundle)
 {
     if ($bundle->getParent() === null) {
         $bundle->setParent($this);
     }
     $this->subBundles->addBundle($bundle);
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * @param  Request $request
  * @param  int     $type
  * @param  bool    $catch
  * @return Response
  */
 public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true)
 {
     parent::handle($request, $type, $catch);
     $this['routes']->addCollection($this->getRouteCollection(true));
     $response = $this['kernel']->handle($request, $type, $catch);
     return $response;
 }