Example #1
0
 /**
  * Get the current app instance, or create skeleton instance.
  * 
  * @param bool $make
  * @return \Phire\Support\Factory\Container\Container
  */
 function app($make = false)
 {
     if (!$make) {
         return \Phire\Support\Factory\Container\Container::getInstance();
     }
     return new \Phire\Support\Factory\Container\Container();
 }
Example #2
0
 /**
  * Return new instance from abstract.
  *
  * @param $abstract
  * @param null $options
  * @return mixed|void
  */
 public function make($abstract, $options = null)
 {
     $abstract = $this->getAlias($abstract);
     return parent::make($abstract, $options);
 }