Example #1
0
 /**
  * Get the container's bindings.
  *
  * @return array 
  * @static 
  */
 public static function getBindings()
 {
     //Method inherited from \Illuminate\Container\Container
     return \Illuminate\Foundation\Application::getBindings();
 }
 /**
  * Inject storage driver and pass configuration using the app IoC container
  */
 private static function injectStorageDriver()
 {
     //Only attempt to inject driver if there is a IoC binding for the interface
     if (App::getBindings()[StorageDriver::class]) {
         static::$storageDriver = app(StorageDriver::class);
         static::$storageDriver->setConfigKey(static::$storageDriverConfigPath);
     }
 }