public static function packageInKernel(PackageEvent $event)
    {
        self::addJobByOperationType(
            $event->getOperation(),
            function ($package) {
                return new AddKernel($package);
            },
            function ($package) {
                return new RemoveKernel($package);
            }
        );
    }
public static function packageInKernel(PackageEvent $event)
    {
        self::addJobByOperationType(
            $event->getOperation(),
            function ($package) {
                return new AddKernel($package);
            },
            function ($package) {
                return new RemoveKernel($package);
            }
        );
    }
public static function packageInKernel ( PackageEvent $ event ) { self :: addJobByOperationType ( $ event -> getOperation ( ) , function ( $ package ) { return new AddKernel ( $ package ) ; } , function ( $ package ) { return new RemoveKernel ( $ package ) ; } ) ; }
Add or remove package in kernel.

@param PackageEvent $event
Add or remove package in kernel .