Author: Carson Full (carsonfull@gmail.com)
Inheritance: implements Silex\ControllerProviderInterface
Exemple #1
0
 /**
  * {@inheritdoc}
  */
 protected function render($template, array $variables = [], array $globals = [])
 {
     if (!isset($variables['context'])) {
         $variables = ['context' => $variables];
     }
     return parent::render($template, $variables, $globals);
 }
Exemple #2
0
 public function connect(Application $app)
 {
     $c = parent::connect($app);
     $c->value(Zone::KEY, Zone::ASYNC);
     $c->before([$this, 'before']);
     return $c;
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 protected function render($template, array $context = [], array $globals = [])
 {
     if (!isset($context['context'])) {
         $context = ['context' => $context];
     }
     return parent::render($template, $context, $globals);
 }
Exemple #4
0
 public function connect(Application $app)
 {
     $this->callbackResolver = $app['callback_resolver'];
     return parent::connect($app);
 }