コード例 #1
0
 /**
  * @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;
 }
コード例 #2
0
 public function render($template, array $data = array())
 {
     $this->app['dispatcher']->dispatch('static:render');
     return parent::render($template, $data);
 }