Merge pull request #3327 from Strate/dump_autoload_event_args
Accessing to option 'optimize-autoloder' inside 'post-autoload-dump' script eventpull/3328/head
commit
5aff8632b4
|
@ -53,7 +53,9 @@ class AutoloadGenerator
|
||||||
|
|
||||||
public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '')
|
public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsr0Packages = false, $suffix = '')
|
||||||
{
|
{
|
||||||
$this->eventDispatcher->dispatchScript(ScriptEvents::PRE_AUTOLOAD_DUMP, $this->devMode);
|
$this->eventDispatcher->dispatchScript(ScriptEvents::PRE_AUTOLOAD_DUMP, $this->devMode, array(
|
||||||
|
'optimize' => (bool) $scanPsr0Packages
|
||||||
|
));
|
||||||
|
|
||||||
$filesystem = new Filesystem();
|
$filesystem = new Filesystem();
|
||||||
$filesystem->ensureDirectoryExists($config->get('vendor-dir'));
|
$filesystem->ensureDirectoryExists($config->get('vendor-dir'));
|
||||||
|
@ -235,7 +237,9 @@ EOF;
|
||||||
fclose($targetLoader);
|
fclose($targetLoader);
|
||||||
unset($sourceLoader, $targetLoader);
|
unset($sourceLoader, $targetLoader);
|
||||||
|
|
||||||
$this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode);
|
$this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, array(
|
||||||
|
'optimize' => (bool) $scanPsr0Packages,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function buildPackageMap(InstallationManager $installationManager, PackageInterface $mainPackage, array $packages)
|
public function buildPackageMap(InstallationManager $installationManager, PackageInterface $mainPackage, array $packages)
|
||||||
|
|
Loading…
Reference in New Issue