Exemplo n.º 1
0
 /**
  * @param \ACP3\Core\Controller\Context\WidgetContext $context
  * @param \ACP3\Core\Assets                           $assets
  * @param \ACP3\Core\Breadcrumb\Steps                 $breadcrumb
  * @param \ACP3\Core\Breadcrumb\Title                 $title
  * @param \ACP3\Core\Modules\Helper\Action            $actionHelper
  */
 public function __construct(Core\Controller\Context\WidgetContext $context, Core\Assets $assets, Core\Breadcrumb\Steps $breadcrumb, Core\Breadcrumb\Title $title, Core\Modules\Helper\Action $actionHelper)
 {
     parent::__construct($context->getContainer(), $context->getEventDispatcher(), $context->getACL(), $context->getUser(), $context->getTranslator(), $context->getModules(), $context->getRequest(), $context->getRouter(), $context->getValidator(), $context->getView(), $context->getConfig(), $context->getAppPath(), $context->getResponse(), $context->getResultsPerPage());
     $this->assets = $assets;
     $this->breadcrumb = $breadcrumb;
     $this->title = $title;
     $this->actionHelper = $actionHelper;
 }
Exemplo n.º 2
0
 /**
  * WidgetController constructor.
  *
  * @param \ACP3\Core\Controller\Context\WidgetContext $context
  */
 public function __construct(Core\Controller\Context\WidgetContext $context)
 {
     $this->container = $context->getContainer();
     $this->eventDispatcher = $context->getEventDispatcher();
     $this->acl = $context->getACL();
     $this->user = $context->getUser();
     $this->translator = $context->getTranslator();
     $this->request = $context->getRequest();
     $this->router = $context->getRouter();
     $this->validator = $context->getValidator();
     $this->view = $context->getView();
     $this->modules = $context->getModules();
     $this->config = $context->getConfig();
     $this->appPath = $context->getAppPath();
     $this->response = $context->getResponse();
     $this->resultsPerPage = $context->getResultsPerPage();
 }