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
파일: Facade.php 프로젝트: manaphp/manaphp
 /**
  * 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