public function create(Package $package) { $this->packagePath = getcwd() . '/' . $this->packageParser->parse($package->getPackageName())->toDirectoryName(); if ($this->filesystem->exists($this->packagePath)) { throw new DirectoryExistsException($this->packagePath); } $this->setup(); foreach ($this->generators as $generator) { $this->buildDirectories($generator->getDirectories()); $generator->create($this->packagePath); } }
public function handle(Package $package) { var_dump('new package.....'); var_dump($package->getPackageName()); die; }