Esempio n. 1
0
 public function __construct(AdminRepositoryInterface $admins, RoleRepositoryInterface $roles, AdminAuthorizerInterface $authorizer, AdminValidatorInterface $validator, AdminRegistrationNotifierInterface $notifier, Sections $sections)
 {
     parent::__construct();
     $this->admins = $admins;
     $this->roles = $roles;
     $this->sections = $sections;
     $this->authorizer = $authorizer;
     $this->validator = $validator;
     $this->notifier = $notifier;
 }
Esempio n. 2
0
 /**
  * @param \Agency\Contracts\Cms\Repositories\SectionRepositoryInterface $sections
  * @param \Agency\Contracts\NewsServiceInterface                        $news_service
  * @param \Agency\Contracts\WriterRepositoryInterface                   $writers
  * @param \Agency\Contracts\NewsValidatorInterface                      $news_validator
  * @param \Agency\Contracts\PhotosServiceInterface                      $photos_service
  * @param \Agency\Contracts\ContentServiceInterface                     $content_service
  * @param \Agency\Contracts\HelperInterface                             $helper
  */
 public function __construct(SectionRepositoryInterface $sections, NewsServiceInterface $news_service, WriterRepositoryInterface $writers, NewsValidatorInterface $news_validator, PhotosServiceInterface $photos_service, ContentServiceInterface $content_service, HelperInterface $helper)
 {
     parent::__construct();
     $this->sections = $sections;
     $this->news_service = $news_service;
     $this->writers = $writers;
     $this->news_validator = $news_validator;
     $this->photos_service = $photos_service;
     $this->content_service = $content_service;
     $this->helper = $helper;
     $this->section = $this->sections->findBy("alias", self::NEWS_ALIAS);
 }
Esempio n. 3
0
 public function __construct(Roles $roles, RoleValidator $validator)
 {
     parent::__construct();
     $this->roles = $roles;
     $this->validator = $validator;
 }
Esempio n. 4
0
 public function __construct(ApplicationRepositoryInterface $application, ApplicationValidator $validator, SectionRepositoryInterface $sections)
 {
     parent::__construct($sections);
     $this->application = $application;
     $this->validator = $validator;
 }
Esempio n. 5
0
 public function __construct(AuthenticatorInterface $auth)
 {
     parent::__construct();
     $this->auth = $auth;
 }
Esempio n. 6
0
 public function __construct(SectionValidator $validator, Sections $sections)
 {
     parent::__construct();
     $this->sections = $sections;
     $this->validator = $validator;
 }
Esempio n. 7
0
 public function __construct(Permissions $permissions, PermissionValidator $validator)
 {
     parent::__construct();
     $this->permissions = $permissions;
     $this->validator = $validator;
 }