public function initialize(Bootstrap $bootstrap)
    {
        $this->bootstrap = $bootstrap;
        $this->packageStatesConfiguration = $this->getCurrentPackageStates();
        $this->registerPackagesFromConfiguration($this->packageStatesConfiguration);
        /** @var PackageInterface $package */

        foreach ($this->packages as $package) {
            if ($package instanceof FlowPackageInterface) {
                $this->flowPackages[$package->getPackageKey()] = $package;
            }
            if (!$package instanceof BootablePackageInterface) {
                continue;
            }
            $package->boot($bootstrap);
        }
    }
public function initialize(Bootstrap $bootstrap)
    {
        $this->bootstrap = $bootstrap;
        $this->packageStatesConfiguration = $this->getCurrentPackageStates();
        $this->registerPackagesFromConfiguration($this->packageStatesConfiguration);
        /** @var PackageInterface $package */

        foreach ($this->packages as $package) {
            if ($package instanceof FlowPackageInterface) {
                $this->flowPackages[$package->getPackageKey()] = $package;
            }
            if (!$package instanceof BootablePackageInterface) {
                continue;
            }
            $package->boot($bootstrap);
        }
    }
public function initialize ( Bootstrap $ bootstrap ) { $ this -> bootstrap = $ bootstrap ; $ this -> packageStatesConfiguration = $ this -> getCurrentPackageStates ( ) ; $ this -> registerPackagesFromConfiguration ( $ this -> packageStatesConfiguration ) ; /** @var PackageInterface $package */ foreach ( $ this -> packages as $ package ) { if ( $ package instanceof FlowPackageInterface ) { $ this -> flowPackages [ $ package -> getPackageKey ( ) ] = $ package ; } if ( ! $ package instanceof BootablePackageInterface ) { continue ; } $ package -> boot ( $ bootstrap ) ; } }
Initializes the package manager

@param Bootstrap $bootstrap The current bootstrap
@return void
Initializes the package manager