Esempio n. 1
0
 /**
  * Class constructor
  *
  * @param App $app App instance
  */
 public function __construct(App $app)
 {
     // Construct from parent
     parent::__construct($app);
     // Check if the tokens folder is writable
     if (!is_writable($this->app->config('tokens.storage'))) {
         throw new \Exception("The tokens storage is not writable", 500);
     }
 }
Esempio n. 2
0
 /**
  * Class constructor
  *
  * @param App $app App instance
  * @param PDO $pdo PDO instance
  */
 public function __construct(App $app)
 {
     // Construct from parent
     parent::__construct($app);
     // Setup PDO
     $this->pdo = $this->app->pdo;
     // Set default values
     $this->reset();
 }
Esempio n. 3
0
 /**
  * Class constructor
  *
  * @param App $app App instance
  */
 public function __construct(App $app)
 {
     // Construct from parent
     parent::__construct($app);
     // Setup model
     if (isset($this->modelName)) {
         $this->model = $this->app->make($this->modelName);
     }
     // Initialize
     $this->initialize();
 }