public static function postInstall(CommandEvent $event)
    {
        // Detect path to composer.json
        self::setInstallPath(
            self::retrieveInstallPath()
        );

        // We must include autoloader - funny.
        require_once self::getInstallPath() . DIRECTORY_SEPARATOR . 'vendor/autoload.php';

        // Store extra from composer
        self::setExtra(
            $event->getComposer()->getPackage()->getExtra()
        );

        // Force colors
        \cli\Colors::enable();

        // Process event
        return self::handleEvent($event);
    }
public static function postInstall(CommandEvent $event)
    {
        // Detect path to composer.json
        self::setInstallPath(
            self::retrieveInstallPath()
        );

        // We must include autoloader - funny.
        require_once self::getInstallPath() . DIRECTORY_SEPARATOR . 'vendor/autoload.php';

        // Store extra from composer
        self::setExtra(
            $event->getComposer()->getPackage()->getExtra()
        );

        // Force colors
        \cli\Colors::enable();

        // Process event
        return self::handleEvent($event);
    }
public static function postInstall ( CommandEvent $ event ) { // Detect path to composer.json self :: setInstallPath ( self :: retrieveInstallPath ( ) ) ; // We must include autoloader - funny. require_once self :: getInstallPath ( ) . DIRECTORY_SEPARATOR . 'vendor/autoload.php' ; // Store extra from composer self :: setExtra ( $ event -> getComposer ( ) -> getPackage ( ) -> getExtra ( ) ) ; // Force colors \ cli \ Colors :: enable ( ) ; // Process event return self :: handleEvent ( $ event ) ; }
Installer process for project based on post install event hook on composer.

@param CommandEvent $event The event passed in by Composer.

@author Benjamin Carl <opensource@clickalicious.de>
@return boolean|null TRUE on success, otherwise FALSE (signal for Composer to resolve with error)
@access public
@static
Installer process for project based on post install event hook on composer .