From: Vincent Vanwaelscappel Date: Wed, 22 May 2019 15:02:42 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=55ae8f76d00b8259050d66cd024e37fdabe768df;p=cubist_cms-back.git #2783 --- diff --git a/src/Cubist/Backpack/app/Console/CubistBackpackCommand.php b/src/Cubist/Backpack/app/Console/CubistBackpackCommand.php deleted file mode 100644 index 804e827..0000000 --- a/src/Cubist/Backpack/app/Console/CubistBackpackCommand.php +++ /dev/null @@ -1,51 +0,0 @@ -argument('name')); - - // Find cubistmagic directories - $iterator = Files::getDirectoryIterator(app_path(), true); - $magics = []; - foreach ($iterator as $item) { - /** @var $item \SplFileInfo */ - if ($item->isDir() && $item->getFilename() == 'cubistmagic') { - $this->_handleMagicFolder($item); - } - } - $this->executeProcess('composer dump-autoload'); - } - - protected function _handleMagicFolder(\SplFileInfo $item) - { - $this->line('Handling ' . $item->getPath()); - } -} diff --git a/src/app/Console/CubistBackpackCommand.php b/src/app/Console/CubistBackpackCommand.php new file mode 100644 index 0000000..804e827 --- /dev/null +++ b/src/app/Console/CubistBackpackCommand.php @@ -0,0 +1,51 @@ +argument('name')); + + // Find cubistmagic directories + $iterator = Files::getDirectoryIterator(app_path(), true); + $magics = []; + foreach ($iterator as $item) { + /** @var $item \SplFileInfo */ + if ($item->isDir() && $item->getFilename() == 'cubistmagic') { + $this->_handleMagicFolder($item); + } + } + $this->executeProcess('composer dump-autoload'); + } + + protected function _handleMagicFolder(\SplFileInfo $item) + { + $this->line('Handling ' . $item->getPath()); + } +}