コード例 #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;
 }
コード例 #2
0
ファイル: AuthController.php プロジェクト: notadd/framework
 /**
  * LoginController constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest', ['except' => 'logout']);
 }
コード例 #3
0
 /**
  * WatermarkController constructor.
  *
  * @param \Notadd\Foundation\Setting\Contracts\SettingsRepository $settings
  */
 public function __construct(SettingsRepository $settings)
 {
     parent::__construct();
     $this->settings = $settings;
 }
コード例 #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;
 }
コード例 #5
0
 /**
  * InstallController constructor.
  *
  * @param \Notadd\Install\Contracts\Prerequisite $prerequisite
  */
 public function __construct(Prerequisite $prerequisite)
 {
     parent::__construct();
     $this->prerequisite = $prerequisite;
 }
コード例 #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;
 }