/** * @param Application $app - di container * @param EntityRepository $resourceRepository - resource entities repository * @param callback $formProvider - provides form for editing resource */ public function __construct(Application $app, $modulePrefix, $moduleViewPath, $resourceRepository, $formProvider) { parent::__construct($app); $this->modulePrefix = $modulePrefix; $this->resourceRepository = $resourceRepository; $this->moduleViewPath = $moduleViewPath; $this->formProvider = $formProvider; }
public function render($template, array $data = array()) { $this->app['dispatcher']->dispatch('static:render'); return parent::render($template, $data); }