Exemple #1
0
 private static function getBaseConfigDir()
 {
     if (self::$baseConfigDir === null) {
         self::$baseConfigDir = APIJet::getRootDir() . 'Config' . DIRECTORY_SEPARATOR;
     }
     return self::$baseConfigDir;
 }
Exemple #2
0
 public static function isАuthorized()
 {
     $authorizationCallback = APIJet::getAPIJetConfig(APIJet::AUTHORIZATION_CALLBACK);
     if ($authorizationCallback === null) {
         return true;
     }
     return (bool) $authorizationCallback();
 }
Exemple #3
0
 public function getDb()
 {
     return $this->app->getSingletonContainer('Db');
 }