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