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