From 02f6add5a954198ec092e803764cc16c37ed2594 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 16 Sep 2015 12:21:29 +0200 Subject: [PATCH] removed the code allowing to switch to the nex dir structure --- app/SymfonyStandard/Composer.php | 22 ------------ .../RootPackageInstallSubscriber.php | 34 ------------------- composer.json | 3 -- 3 files changed, 59 deletions(-) delete mode 100644 app/SymfonyStandard/Composer.php delete mode 100644 app/SymfonyStandard/RootPackageInstallSubscriber.php diff --git a/app/SymfonyStandard/Composer.php b/app/SymfonyStandard/Composer.php deleted file mode 100644 index f1c85f0e06..0000000000 --- a/app/SymfonyStandard/Composer.php +++ /dev/null @@ -1,22 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace SymfonyStandard; - -use Composer\Script\CommandEvent; - -class Composer -{ - public static function hookRootPackageInstall(CommandEvent $event) - { - $event->getComposer()->getEventDispatcher()->addSubscriber(new RootPackageInstallSubscriber()); - } -} diff --git a/app/SymfonyStandard/RootPackageInstallSubscriber.php b/app/SymfonyStandard/RootPackageInstallSubscriber.php deleted file mode 100644 index 2f88b61ac4..0000000000 --- a/app/SymfonyStandard/RootPackageInstallSubscriber.php +++ /dev/null @@ -1,34 +0,0 @@ - - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -namespace SymfonyStandard; - -use Composer\EventDispatcher\EventSubscriberInterface; -use Composer\Script\ScriptEvents; -use Composer\Script\CommandEvent; -use Sensio\Bundle\DistributionBundle\Composer\ScriptHandler; - -class RootPackageInstallSubscriber implements EventSubscriberInterface -{ - public static function setupNewDirectoryStructure(CommandEvent $event) - { - ScriptHandler::defineDirectoryStructure($event); - } - - public static function getSubscribedEvents() - { - return array( - ScriptEvents::POST_INSTALL_CMD => array( - array('setupNewDirectoryStructure', 512), - ), - ); - } -} diff --git a/composer.json b/composer.json index d89b97e2f2..64491a6dde 100644 --- a/composer.json +++ b/composer.json @@ -22,9 +22,6 @@ "sensio/generator-bundle": "~2.3" }, "scripts": { - "post-root-package-install": [ - "SymfonyStandard\\Composer::hookRootPackageInstall" - ], "post-install-cmd": [ "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters", "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",