ManaPHP\Di::getDefault PHP Метод

getDefault() публичный статический Метод

Return the First DI created
public static getDefault ( ) : static
Результат static
    public static function getDefault()
    {
        return self::$_default;
    }

Usage Example

Пример #1
0
 /**
  * Get the root object behind the facade.
  *
  * @return mixed
  */
 public static function getFacadeInstance()
 {
     $className = get_called_class();
     if (!isset(static::$_instances[$className])) {
         static::$_instances[$className] = Di::getDefault()->getShared(static::getFacadeName());
     }
     return static::$_instances[$className];
 }
All Usage Examples Of ManaPHP\Di::getDefault