public function setPackages(array $activePackages)
    {
        /** @var Package $package */
        foreach ($activePackages as $packageKey => $package) {
            foreach ($package->getFlattenedAutoloadConfiguration() as $configuration) {
                $this->createNamespaceMapEntry($configuration['namespace'], $configuration['classPath'], $configuration['mappingType']);
            }
            // TODO: Replace with "autoload-dev" usage
            if ($this->considerTestsNamespace) {
                foreach ($package->getNamespaces() as $namespace) {
                    $this->createNamespaceMapEntry($namespace, $package->getPackagePath(), self::MAPPING_TYPE_PSR4);
                }
            }
        }
    }
public function setPackages(array $activePackages)
    {
        /** @var Package $package */
        foreach ($activePackages as $packageKey => $package) {
            foreach ($package->getFlattenedAutoloadConfiguration() as $configuration) {
                $this->createNamespaceMapEntry($configuration['namespace'], $configuration['classPath'], $configuration['mappingType']);
            }
            // TODO: Replace with "autoload-dev" usage
            if ($this->considerTestsNamespace) {
                foreach ($package->getNamespaces() as $namespace) {
                    $this->createNamespaceMapEntry($namespace, $package->getPackagePath(), self::MAPPING_TYPE_PSR4);
                }
            }
        }
    }
public function setPackages ( array $ activePackages ) { /** @var Package $package */ foreach ( $ activePackages as $ packageKey => $ package ) { foreach ( $ package -> getFlattenedAutoloadConfiguration ( ) as $ configuration ) { $ this -> createNamespaceMapEntry ( $ configuration [ 'namespace' ] , $ configuration [ 'classPath' ] , $ configuration [ 'mappingType' ] ) ; } // TODO: Replace with "autoload-dev" usage if ( $ this -> considerTestsNamespace ) { foreach ( $ package -> getNamespaces ( ) as $ namespace ) { $ this -> createNamespaceMapEntry ( $ namespace , $ package -> getPackagePath ( ) , self :: MAPPING_TYPE_PSR4 ) ; } } } }
Sets the available packages

@param array $activePackages An array of \Neos\Flow\Package\Package objects
@return void
Sets the available packages