From: Vincent Vanwaelscappel Date: Wed, 22 May 2019 14:55:43 +0000 (+0200) Subject: #2783 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=dd7de18f08c22cd5f19d7a6a0651242a2065b989;p=cubist_cms-back.git #2783 --- diff --git a/src/Cubist/Backpack/app/Console/CubistBackpackCommand.php b/src/Cubist/Backpack/app/Console/CubistBackpackCommand.php new file mode 100644 index 0000000..bcfa182 --- /dev/null +++ b/src/Cubist/Backpack/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); + } + } + + } + + protected function _handleMagicFolder(\SplFileInfo $item) + { + $this->line('Handling ' . $item->getPath()); + } +}