diff --git a/scripts/abstract.php b/scripts/abstract.php deleted file mode 100644 index 9810418c4a676..0000000000000 --- a/scripts/abstract.php +++ /dev/null @@ -1,49 +0,0 @@ -_objectManager = $objectManager; - $this->_eventManager = $eventManager; - $this->_areaList = $areaList; - $this->_request = $request; - $this->_response = $response; - $this->_configLoader = $configLoader; - $this->_state = $state; - $this->_filesystem = $filesystem; - $this->registry = $registry; - } - - public function launch() - { - $this->run(); - return $this->_response; - } - - abstract public function run(); - - public function catchException(\Magento\Framework\App\Bootstrap $bootstrap, \Exception $exception) - { - return false; - } -} diff --git a/scripts/create-categories.php b/scripts/create-categories.php deleted file mode 100644 index 06a2e443839fa..0000000000000 --- a/scripts/create-categories.php +++ /dev/null @@ -1,45 +0,0 @@ -_objectManager->get('Magento\Framework\Registry') - ->register('isSecureArea', true); - - for ($i=0; $i<2500; ++$i) { - $newCategoryName = 'Performance Category ' .$i; - - /** @var Magento\Catalog\Model\Category\Interceptor $newCategory */ - $newCategory = $this->_objectManager->create('\Magento\Catalog\Model\Category'); - $existingCategory = $newCategory->loadByAttribute('name', $newCategoryName); - - if (!$existingCategory) { - $newCategory->setData( - array( - 'name' => $newCategoryName, - 'parent_id' => Magento\Catalog\Model\Category::TREE_ROOT_ID, - 'attribute_set_id' => $newCategory->getDefaultAttributeSetId(), - 'path' => Magento\Catalog\Model\Category::TREE_ROOT_ID, - ) - ); - $newCategory->save(); - - echo "Created\t" . $newCategoryName . PHP_EOL; - } else { - $newCategory->delete(); - echo "Deleting\t" . $newCategoryName . PHP_EOL; - } - } - } -} - -/** @var \Magento\Framework\App\Http $app */ -$app = $bootstrap->createApplication('CreateCategoriesApp'); -$bootstrap->run($app); - -