Beispiel #1
0
 /**
  * Create a new directory instance.
  *
  * @param  \Basset\Factory\FactoryManager  $factory
  * @param  \Basset\AssetFinder  $finder
  * @param  string  $path
  * @return void
  */
 public function __construct(FactoryManager $factory, AssetFinder $finder, $path)
 {
     parent::__construct();
     $this->factory = $factory;
     $this->finder = $finder;
     $this->path = $path;
     $this->assets = new \Illuminate\Support\Collection();
     $this->directories = new \Illuminate\Support\Collection();
 }
Beispiel #2
0
 /**
  * Create a new asset instance.
  *
  * @param  \Illuminate\Filesystem\Filesystem  $files
  * @param  \Basset\Factory\FactoryManager  $factory
  * @param  string  $appEnvironment
  * @param  string  $absolutePath
  * @param  string  $relativePath
  * @return void
  */
 public function __construct(Filesystem $files, FactoryManager $factory, $appEnvironment, $absolutePath, $relativePath)
 {
     parent::__construct();
     $this->files = $files;
     $this->factory = $factory;
     $this->appEnvironment = $appEnvironment;
     $this->absolutePath = $absolutePath;
     $this->relativePath = $relativePath;
 }