Altax\Foundation\ModuleFacade::clearResolvedInstances PHP Method

clearResolvedInstances() public static method

Clear all of the resolved instances.
public static clearResolvedInstances ( ) : void
return void
    public static function clearResolvedInstances()
    {
        static::$resolvedInstance = array();
    }

Usage Example

コード例 #1
0
 protected function setUp()
 {
     $this->container = new Container();
     ModuleFacade::clearResolvedInstances();
     ModuleFacade::setContainer($this->container);
     $module = new \Altax\Module\Server\ServerModule($this->container);
     $this->container->addModule(Server::getModuleName(), $module);
 }
All Usage Examples Of Altax\Foundation\ModuleFacade::clearResolvedInstances