예제 #1
0
 /**
  * Unregisters dependency
  * @param string $alias
  * @return \RivetIoc\Ioc
  */
 public static function unregister($alias)
 {
     $ioc = Ioc::getInstance();
     return $ioc->unregister($alias);
 }
예제 #2
0
 /**
  * Tests RivetIoc\Contracts\Singleton class
  */
 public function testGetInstance()
 {
     $firstInstance = Ioc::getInstance();
     $secondInstance = Ioc::getInstance();
     $this->assertSame($firstInstance, $secondInstance);
 }