/**
  * @test
  * @author Karsten Dambekalns <*****@*****.**>
  */
 public function specialClassNamesAndPathsSettingsOverrideClassLoaderBehaviour()
 {
     $root = \vfsStream::newDirectory('Packages/Virtual/Resources/PHP');
     \vfsStreamWrapper::setRoot($root);
     $vfsClassFile = \vfsStream::newFile('Bar.php')->withContent('<?php ?>')->at($root->getChild('Virtual/Resources/PHP'));
     $this->classLoader->setSpecialClassNameAndPath('Baz', \vfsStream::url('Virtual/Resources/PHP/Bar.php'));
     $this->classLoader->loadClass('Baz');
     $this->assertTrue($vfsClassFile->eof());
 }
 /**
  * Initializes the package system and loads the package configuration and settings
  * provided by the packages.
  *
  * @return void
  * @author Robert Lemke <*****@*****.**>
  * @see initialize()
  */
 public function initializePackages()
 {
     $this->packageManager = $this->objectManager->getObject('F3\\FLOW3\\Package\\PackageManagerInterface');
     $this->packageManager->initialize();
     $activePackages = $this->packageManager->getActivePackages();
     $this->classLoader->setPackages($activePackages);
     $this->configurationManager->setPackages($activePackages);
     foreach ($activePackages as $packageKey => $package) {
         $packageConfiguration = $this->configurationManager->getConfiguration(\F3\FLOW3\Configuration\ConfigurationManager::CONFIGURATION_TYPE_PACKAGE, $packageKey);
         $this->evaluatePackageConfiguration($package, $packageConfiguration);
     }
 }