public static function packageInRouting(PackageEvent $event)
    {
        self::addJobByOperationType(
            $event->getOperation(),
            function ($package) {
                return new AddRouting($package);
            },
            function ($package) {
                return new RemoveRouting($package);
            }
        );
    }
public static function packageInRouting(PackageEvent $event)
    {
        self::addJobByOperationType(
            $event->getOperation(),
            function ($package) {
                return new AddRouting($package);
            },
            function ($package) {
                return new RemoveRouting($package);
            }
        );
    }
public static function packageInRouting ( PackageEvent $ event ) { self :: addJobByOperationType ( $ event -> getOperation ( ) , function ( $ package ) { return new AddRouting ( $ package ) ; } , function ( $ package ) { return new RemoveRouting ( $ package ) ; } ) ; }
Add or remove packages in routing.

@param PackageEvent $event
Add or remove packages in routing .