From dd7de18f08c22cd5f19d7a6a0651242a2065b989 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 22 May 2019 16:55:43 +0200 Subject: [PATCH] #2783 --- .../app/Console/CubistBackpackCommand.php | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/Cubist/Backpack/app/Console/CubistBackpackCommand.php 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()); + } +} -- 2.39.5