예제 #1
0
 /** @inheritdoc */
 public function boot()
 {
     if (empty($this->lumberjackPrefix)) {
         $this->setLumberjackPrefix(MountServiceProvider::IOC_NAME);
     }
     parent::boot();
 }
 /**
  * @param string $tag
  * @param string $subkey
  *
  * @return \DreamFactory\Enterprise\Common\Contracts\ResourceProvisioner
  */
 public function resolve($tag, $subkey = null)
 {
     $_key = $this->_buildTag($tag, $subkey);
     try {
         return parent::resolve($_key);
     } catch (\InvalidArgumentException $_ex) {
         //  Ignored
     }
     $_namespace = config('provisioners.hosts.' . $tag . '.namespace');
     $_class = ($_namespace ? $_namespace . '\\' : null) . config('provisioners.hosts.' . $_key);
     if (empty($_class)) {
         \Log::notice('Requested provisioner "' . $_key . '" is not valid.');
         return null;
     }
     $this->manage($_key, $_provisioner = new $_class($this->app));
     return $_provisioner;
 }
예제 #3
0
 /**
  * Constructor
  *
  * @param \Illuminate\Contracts\Foundation\Application $app
  * @param Instance[]                                   $instances
  */
 public function __construct($app, array $instances = [])
 {
     parent::__construct($app);
     !empty($instances) && $this->registerInstances($instances);
 }