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",