getContainer() 공개 정적인 메소드

Get the application instance behind the facade.
public static getContainer ( ) : Illuminate\Foundation\Application
리턴 Illuminate\Foundation\Application
예제 #1
0
 public function testDefault()
 {
     ModuleFacade::clearResolvedInstances();
     ModuleFacade::setContainer($this->container);
     try {
         ModuleFacade::getModuleName();
         $this->assertEquals(false, true);
     } catch (\RuntimeException $e) {
         $this->assertEquals(true, true);
     }
     ModuleFacade::getContainer();
     ModuleFacade::clearResolvedInstance("Task");
 }