public function __construct($name, $templating, $doctrine, $template = null) { $this->doctrine = $doctrine; if ($templating->exists('ConnectHollandMainBundle:Block:block_newsoverview.html.twig')) { $template = 'ConnectHollandMainBundle:Block:block_newsoverview.html.twig'; $this->template = $template; } parent::__construct($name, $templating); }
public function __construct($name, $templating, $doctrine, $template = null) { $this->doctrine = $doctrine; $this->templating = $templating; parent::__construct($name, $templating); }