public static function registerPackage(Event $event)
    {
        $installedPackage = $event->getOperation()->getPackage();

        if (!self::isBundle($installedPackage)) {
            return;
        }

        self::enablePackage($installedPackage);
    }
public static function registerPackage(Event $event)
    {
        $installedPackage = $event->getOperation()->getPackage();

        if (!self::isBundle($installedPackage)) {
            return;
        }

        self::enablePackage($installedPackage);
    }
public static function registerPackage ( Event $ event ) { $ installedPackage = $ event -> getOperation ( ) -> getPackage ( ) ; if ( ! self :: isBundle ( $ installedPackage ) ) { return ; } self :: enablePackage ( $ installedPackage ) ; }
On Composer's "post-package-install" event, register the package.

@param Event $event
On Composer s post - package - install event register the package .