Exemplo n.º 1
0
 /**
  * AccessTokenController constructor.
  *
  * @param \League\OAuth2\Server\AuthorizationServer $server
  * @param \Laravel\Passport\TokenRepository         $tokens
  * @param \Lcobucci\JWT\Parser                      $jwt
  */
 public function __construct(AuthorizationServer $server, TokenRepository $tokens, JwtParser $jwt)
 {
     parent::__construct();
     $this->jwt = $jwt;
     $this->server = $server;
     $this->tokens = $tokens;
 }
Exemplo n.º 2
0
 /**
  * LoginController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest', ['except' => 'logout']);
 }
Exemplo n.º 3
0
 /**
  * WatermarkController constructor.
  *
  * @param \Notadd\Foundation\Setting\Contracts\SettingsRepository $settings
  */
 public function __construct(SettingsRepository $settings)
 {
     parent::__construct();
     $this->settings = $settings;
 }
Exemplo n.º 4
0
 /**
  * AuthorizationController constructor.
  *
  * @param \League\OAuth2\Server\AuthorizationServer     $server
  * @param \Illuminate\Contracts\Routing\ResponseFactory $response
  */
 public function __construct(AuthorizationServer $server, ResponseFactory $response)
 {
     parent::__construct();
     $this->server = $server;
     $this->response = $response;
 }
Exemplo n.º 5
0
 /**
  * InstallController constructor.
  *
  * @param \Notadd\Install\Contracts\Prerequisite $prerequisite
  */
 public function __construct(Prerequisite $prerequisite)
 {
     parent::__construct();
     $this->prerequisite = $prerequisite;
 }
Exemplo n.º 6
0
 /**
  * ClientsController constructor.
  *
  * @param \Laravel\Passport\ClientRepository $clients
  * @param \Illuminate\Validation\Factory     $validation
  */
 public function __construct(ClientRepository $clients, ValidationFactory $validation)
 {
     parent::__construct();
     $this->clients = $clients;
     $this->validation = $validation;
 }