friendica/bin/composer.phar

92494 lines
1.9 MiB
Executable file
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env php
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view
* the license that is located at the bottom of this file.
*/
// Avoid APC causing random fatal errors per https://github.com/composer/composer/issues/264
if (extension_loaded('apc') && filter_var(ini_get('apc.enable_cli'), FILTER_VALIDATE_BOOLEAN) && filter_var(ini_get('apc.cache_by_default'), FILTER_VALIDATE_BOOLEAN)) {
if (version_compare(phpversion('apc'), '3.0.12', '>=')) {
ini_set('apc.cache_by_default', 0);
} else {
fwrite(STDERR, 'Warning: APC <= 3.0.12 may cause fatal errors when running composer commands.'.PHP_EOL);
fwrite(STDERR, 'Update APC, or set apc.enable_cli or apc.cache_by_default to 0 in your php.ini.'.PHP_EOL);
}
}
Phar::mapPhar('composer.phar');
require 'phar://composer.phar/bin/composer';
__HALT_COMPILER(); ?>
-ú composer.phar+src/Composer/Autoload/AutoloadGenerator.phpÈilY×^ÈiåOÖƤ+src/Composer/Autoload/ClassMapGenerator.phpúlY×5̤src/Composer/Cache.phpçlY׳›î¤%src/Composer/Command/AboutCommand.phpØlY×ö÷;‡¤'src/Composer/Command/ArchiveCommand.phpälY×Õ­¤$src/Composer/Command/BaseCommand.phpÜ lY× .src/Composer/Command/BaseDependencyCommand.phpglY×^göN1src/Composer/Command/CheckPlatformReqsCommand.phplY×^<00>Ǥ*src/Composer/Command/ClearCacheCommand.php½lY×°&src/Composer/Command/ConfigCommand.phpÎQlY×^ÎQxþÎ ¤-src/Composer/Command/CreateProjectCommand.phpª;lY×^ª;ò×'src/Composer/Command/DependsCommand.phpølYתeá¤(src/Composer/Command/DiagnoseCommand.phpøOlY×^øO:>ñs¤,src/Composer/Command/DumpAutoloadCommand.phpã lY× © ]†¤$src/Composer/Command/ExecCommand.php lY×^ X?!“¤$src/Composer/Command/FundCommand.php,
lY×^,
9¤&src/Composer/Command/GlobalCommand.phpz lY×^z ³çå?¤$src/Composer/Command/HomeCommand.phplY×^qLBŽ¤$src/Composer/Command/InitCommand.phpçUlY×^çUƒä'src/Composer/Command/InstallCommand.phpTlY×^TÞùõ›¤(src/Composer/Command/LicensesCommand.phpòlY״Ȥ(src/Composer/Command/OutdatedCommand.php lY×^ ا)src/Composer/Command/ProhibitsCommand.phplY×^_¤éS¤&src/Composer/Command/RemoveCommand.phpálY×½í<C2BD>'src/Composer/Command/RequireCommand.php¯)lY×^¯)!`Œ!¤)src/Composer/Command/RunScriptCommand.php³lY×·ü¤+src/Composer/Command/ScriptAliasCommand.php¯lY×?=Ѥ&src/Composer/Command/SearchCommand.phpU lY×^U …ߤ*src/Composer/Command/SelfUpdateCommand.php6lY×^6¿æ÷¤$src/Composer/Command/ShowCommand.phpƒlY×^ƒ‚O<4F> ¤&src/Composer/Command/StatusCommand.phpPlY×^P:±çú¤(src/Composer/Command/SuggestsCommand.phplY×^òBɤ&src/Composer/Command/UpdateCommand.phpñ#lY×^ñ#p\F¤(src/Composer/Command/ValidateCommand.phpklY×^ky8K¤src/Composer/Composer.php~ lY×^~ –ãÀ¤src/Composer/Config.php×$lY×^×$ÝܾS¤-src/Composer/Config/ConfigSourceInterface.phplY×^³ [/¤(src/Composer/Config/JsonConfigSource.php¹lY×”\©-¤$src/Composer/Console/Application.phpY8lY×^Y8·î€²¤,src/Composer/Console/HtmlOutputFormatter.php3lY×^3Ú<>Eu¤-src/Composer/DependencyResolver/Decisions.php6lY×^6à• ž¤1src/Composer/DependencyResolver/DefaultPolicy.phplY×^õÝv¤/src/Composer/DependencyResolver/GenericRule.phpµlY×᫤¤>src/Composer/DependencyResolver/Operation/InstallOperation.phpClY×^C´\õ*¤Isrc/Composer/DependencyResolver/Operation/MarkAliasInstalledOperation.php÷lY×ïÎà÷¤Ksrc/Composer/DependencyResolver/Operation/MarkAliasUninstalledOperation.phpýlY×3#†¤@src/Composer/DependencyResolver/Operation/OperationInterface.phpÓlY×Ùâ&ä¤=src/Composer/DependencyResolver/Operation/SolverOperation.php¹lY×&¢e
¤@src/Composer/DependencyResolver/Operation/UninstallOperation.phpIlY×^IFûÂɤ=src/Composer/DependencyResolver/Operation/UpdateOperation.php'lY×^'Qúɯ¤3src/Composer/DependencyResolver/PolicyInterface.php­lY×^­Ÿ(src/Composer/DependencyResolver/Pool.php¯"lY×^¯"m½ ¤+src/Composer/DependencyResolver/Problem.phpúlY×]D5¤+src/Composer/DependencyResolver/Request.phpƒlY×åVP„¤(src/Composer/DependencyResolver/Rule.php?lY×^?¬‘œü¤1src/Composer/DependencyResolver/Rule2Literals.phplY×^tZÅɤ+src/Composer/DependencyResolver/RuleSet.phpª
lY×
¤4src/Composer/DependencyResolver/RuleSetGenerator.phpÊlY×D¦õZ¤3src/Composer/DependencyResolver/RuleSetIterator.phplY×^Cü$¤2src/Composer/DependencyResolver/RuleWatchChain.phpilY×^ihïš,¤2src/Composer/DependencyResolver/RuleWatchGraph.phpálY׉rôv¤1src/Composer/DependencyResolver/RuleWatchNode.phplY×^<00>Gd7¤*src/Composer/DependencyResolver/Solver.phpf:lY×^f:Nø1´¤6src/Composer/DependencyResolver/SolverBugException.php™lY×^™Xg6¤;src/Composer/DependencyResolver/SolverProblemsException.phpôlY××|Ŧ¤/src/Composer/DependencyResolver/Transaction.php×lY×^×Vm쟤-src/Composer/Downloader/ArchiveDownloader.phpÆ lY×G s0¤1src/Composer/Downloader/ChangeReportInterface.phpÌlYׯਿ¤+src/Composer/Downloader/DownloadManager.php`lY×^`#ÏX¤/src/Composer/Downloader/DownloaderInterface.phpÊlY×gs!l¤3src/Composer/Downloader/DvcsDownloaderInterface.phpÑlY×&Áœ¿¤*src/Composer/Downloader/FileDownloader.phpGlY×^GäOФ/src/Composer/Downloader/FilesystemException.php
lY×^
.-‹¤,src/Composer/Downloader/FossilDownloader.php lY×^ Ü<>Ii¤)src/Composer/Downloader/GitDownloader.php³6lY×^³6¦Ü(9¤*src/Composer/Downloader/GzipDownloader.phpólY×}Úo¤(src/Composer/Downloader/HgDownloader.php”lY×^”ßis̤*src/Composer/Downloader/PathDownloader.phpTlY×^T®–¤0src/Composer/Downloader/PearPackageExtractor.phpulY×^uz„‡¤.src/Composer/Downloader/PerforceDownloader.phpžlY×Öüñ9¤*src/Composer/Downloader/PharDownloader.phpålY×ÞÉç¤)src/Composer/Downloader/RarDownloader.phpžlY×6 3U¤)src/Composer/Downloader/SvnDownloader.phpMlY×^M !`¤)src/Composer/Downloader/TarDownloader.phpãlY×ÍX?¤.src/Composer/Downloader/TransportException.php=lY×^=ZÎÈÞ¤9src/Composer/Downloader/VcsCapableDownloaderInterface.phpÔlY×`§ôö¤)src/Composer/Downloader/VcsDownloader.php¡lY×( à>¤(src/Composer/Downloader/XzDownloader.php§lY×W$;á¤)src/Composer/Downloader/ZipDownloader.php<68>lY×^<5E>®Û#s¤&src/Composer/EventDispatcher/Event.php lY×^ ±™jï¤0src/Composer/EventDispatcher/EventDispatcher.php7lY×^7—Øa¡¤9src/Composer/EventDispatcher/EventSubscriberInterface.php©lY×9src/Composer/EventDispatcher/ScriptExecutionException.phpvlY×^vwZ8S¤)src/Composer/Exception/NoSslException.phpflY×^fËíM<C3AD>¤src/Composer/Factory.php_=lY×^_=x"Ťsrc/Composer/IO/BaseIO.php•lY×^•ìÏA¤src/Composer/IO/BufferIO.php¾lY×X~d¤src/Composer/IO/ConsoleIO.phplY×^üw·¤src/Composer/IO/IOInterface.phpìlY×Õ<>¤src/Composer/IO/NullIO.phpÀlY×F`sʤsrc/Composer/Installer.phpè¡lY×^è¡âšL¤*src/Composer/Installer/BinaryInstaller.php
lY×^
t¤{ø¤2src/Composer/Installer/BinaryPresenceInterface.phpËlY×À5š¨¤.src/Composer/Installer/InstallationManager.php-lY×^-¾}Œ7¤)src/Composer/Installer/InstallerEvent.phplY×^lÔzi¤*src/Composer/Installer/InstallerEvents.phpÞlY×ìŸ@G¤-src/Composer/Installer/InstallerInterface.phpãlY×^ƒ“ʤ+src/Composer/Installer/LibraryInstaller.php%lY×^% »<>̤/src/Composer/Installer/MetapackageInstaller.phpÊlY×Ùti·¤(src/Composer/Installer/NoopInstaller.php+lY×^+À·M}¤'src/Composer/Installer/PackageEvent.phpelY×^e¤(src/Composer/Installer/PackageEvents.php¸lY×^¸dbØs¤.src/Composer/Installer/PearBinaryInstaller.phpø lY× *ë•k¤(src/Composer/Installer/PearInstaller.php¢lY×È‚¶Ñ¤*src/Composer/Installer/PluginInstaller.php¢lY×L´a:¤+src/Composer/Installer/ProjectInstaller.phplY×^*0@P¤4src/Composer/Installer/SuggestedPackagesReporter.php:lY×^:´UV¤src/Composer/Json/JsonFile.phpLlY×^Lrs¤#src/Composer/Json/JsonFormatter.phpblY×^bÝNš¤%src/Composer/Json/JsonManipulator.php“4lY×^“4Í®š¤-src/Composer/Json/JsonValidationException.php\lY×^\.Xóܤ%src/Composer/Package/AliasPackage.phpîlY×-<2D>×7src/Composer/Package/Archiver/ArchivableFilesFilter.php lY×^ yY+¦¤7src/Composer/Package/Archiver/ArchivableFilesFinder.phpÞlY× ²²¹¤0src/Composer/Package/Archiver/ArchiveManager.phpÝ lY× í<´3src/Composer/Package/Archiver/ArchiverInterface.phplY×^ñ´> ¤3src/Composer/Package/Archiver/BaseExcludeFilter.phplY×^y¶=Ƥ7src/Composer/Package/Archiver/ComposerExcludeFilter.phplY×^SZ0¤2src/Composer/Package/Archiver/GitExcludeFilter.phprlY×^r3Mh¤1src/Composer/Package/Archiver/HgExcludeFilter.php lY×^  •¦S¤.src/Composer/Package/Archiver/PharArchiver.php?lY×^?®— u¤-src/Composer/Package/Archiver/ZipArchiver.phpXlY×^X¤k<C2A4>$src/Composer/Package/BasePackage.phplY×^D|ŸÈ¤*src/Composer/Package/Comparer/Comparer.phpRlY×^RÏسî¤(src/Composer/Package/CompletePackage.php¦lY×p[Ö¤1src/Composer/Package/CompletePackageInterface.phplY×^Ϋ>¤+src/Composer/Package/Dumper/ArrayDumper.phpb lY×^b s•°¤src/Composer/Package/Link.phpˆlY×^ˆå¶Y«¤7src/Composer/Package/LinkConstraint/EmptyConstraint.phplY×^é~‹¤?src/Composer/Package/LinkConstraint/LinkConstraintInterface.phpdlY×^d¤ôLn¤7src/Composer/Package/LinkConstraint/MultiConstraint.phplY×^ób`ý¤:src/Composer/Package/LinkConstraint/SpecificConstraint.phpilY×^iÞ”š%¤9src/Composer/Package/LinkConstraint/VersionConstraint.phpXlY×^X}`y¤+src/Composer/Package/Loader/ArrayLoader.php½lY×c
@<40>¤7src/Composer/Package/Loader/InvalidPackageException.phpElY×^Exb¾¤*src/Composer/Package/Loader/JsonLoader.phpùlY×!~ˆ/src/Composer/Package/Loader/LoaderInterface.php²lYצ}úΤ1src/Composer/Package/Loader/RootPackageLoader.phpëlY×ÛŠ ›¤5src/Composer/Package/Loader/ValidatingArrayLoader.php.BlY×^.BåpHD¤src/Composer/Package/Locker.php "lY×^ "mW<0F>¤ src/Composer/Package/Package.phpÉlY×<63>)src/Composer/Package/PackageInterface.php\lY×^\xåp¨¤)src/Composer/Package/RootAliasPackage.php lY×^ _€ø¤$src/Composer/Package/RootPackage.phplY×^ŽÎ_¤-src/Composer/Package/RootPackageInterface.php¹lY×"maV¤/src/Composer/Package/Version/VersionGuesser.phpì!lY×^ì!X]Ô¤.src/Composer/Package/Version/VersionParser.php¥lY×ô´à¤0src/Composer/Package/Version/VersionSelector.php¨lY×ý5½,¤-src/Composer/Plugin/Capability/Capability.phpWlY×^Wæ_¨1¤2src/Composer/Plugin/Capability/CommandProvider.php—lY×^—ûOâ>¤src/Composer/Plugin/Capable.phplY×^Æq$src/Composer/Plugin/CommandEvent.phpâlY׳ÆÇW¤$src/Composer/Plugin/PluginEvents.phpölY×á1=z¤'src/Composer/Plugin/PluginInterface.phpôlY×)'*ؤ%src/Composer/Plugin/PluginManager.phpª$lY×^ª$m‰ƒä¤*src/Composer/Plugin/PreCommandRunEvent.phpõlY×:ðd¤,src/Composer/Plugin/PreFileDownloadEvent.php`lY×^`9-Τ4src/Composer/Question/StrictConfirmationQuestion.phplY×^'.³è¤+src/Composer/Repository/ArrayRepository.php¬lY×.src/Composer/Repository/ArtifactRepository.phpílY×q9OS¤*src/Composer/Repository/BaseRepository.phpŠlY×äÝ÷¤.src/Composer/Repository/ComposerRepository.php0UlY×^0UÃ7L†¤/src/Composer/Repository/CompositeRepository.php;lY×^;¤¯S¤;src/Composer/Repository/ConfigurableRepositoryInterface.php…lY×^…±Ÿ_¤0src/Composer/Repository/FilesystemRepository.phpplY×^p#ù¤4src/Composer/Repository/InstalledArrayRepository.php£lY×/ö~>¤9src/Composer/Repository/InstalledFilesystemRepository.php£lY×V
•_¤8src/Composer/Repository/InstalledRepositoryInterface.php‡lY×^‡£9p¤6src/Composer/Repository/InvalidRepositoryException.phpnlY×^nà“똤-src/Composer/Repository/PackageRepository.phpjlY×^j¥ôò̤*src/Composer/Repository/PathRepository.php—lY×^—ïãc¤2src/Composer/Repository/Pear/BaseChannelReader.phpIlY×^Ic6³¤,src/Composer/Repository/Pear/ChannelInfo.phpÄlY×:T*ɤ.src/Composer/Repository/Pear/ChannelReader.phpílY×?ÈYT¤4src/Composer/Repository/Pear/ChannelRest10Reader.php® lY×™ÖÛú¤4src/Composer/Repository/Pear/ChannelRest11Reader.php& lY×^& òUb¤5src/Composer/Repository/Pear/DependencyConstraint.phpqlY×^q9/src/Composer/Repository/Pear/DependencyInfo.phpqlY×^qfºTò¤8src/Composer/Repository/Pear/PackageDependencyParser.php…lY×^…÷$Li¤,src/Composer/Repository/Pear/PackageInfo.php°lYן ¸ ¤,src/Composer/Repository/Pear/ReleaseInfo.phplY×^o“ŠÃ¤*src/Composer/Repository/PearRepository.phpªlY×)Ÿƒ}¤.src/Composer/Repository/PlatformRepository.php;!lY×^;!äö9¤-src/Composer/Repository/RepositoryFactory.phplY×^è0¹¤/src/Composer/Repository/RepositoryInterface.phpÛlY×âÁ¤-src/Composer/Repository/RepositoryManager.phpM lY×^M <(;Œ¤7src/Composer/Repository/RepositorySecurityException.phpolY×^opÕ«ª¤/src/Composer/Repository/Vcs/BitbucketDriver.php• lY×^• $©Rç¤,src/Composer/Repository/Vcs/FossilDriver.php³lY×ÐCk¤2src/Composer/Repository/Vcs/GitBitbucketDriver.phpëlYל´½X¤)src/Composer/Repository/Vcs/GitDriver.php<68>lY×^<5E>ù,src/Composer/Repository/Vcs/GitHubDriver.php©4lY×^©4(ñ£¤,src/Composer/Repository/Vcs/GitLabDriver.php¢*lY×^¢*1src/Composer/Repository/Vcs/HgBitbucketDriver.phpålY×@)‰L¤(src/Composer/Repository/Vcs/HgDriver.phpBlY×^B»ƒî¤.src/Composer/Repository/Vcs/PerforceDriver.phpù lY×&½tÙ¤)src/Composer/Repository/Vcs/SvnDriver.php¤lY× ¤)src/Composer/Repository/Vcs/VcsDriver.phpæ
lY×
eׯ-¤2src/Composer/Repository/Vcs/VcsDriverInterface.php÷lY×ÇX[‰¤)src/Composer/Repository/VcsRepository.phpØ,lY×^Ø,c÷Mð¤1src/Composer/Repository/VersionCacheInterface.php”lY×^”A?Rï¤3src/Composer/Repository/WritableArrayRepository.phplY×^¾G7src/Composer/Repository/WritableRepositoryInterface.php‰lY×^‰/sï¤$src/Composer/Script/CommandEvent.phpWlY×^W£VZt¤src/Composer/Script/Event.phpºlY×ò<>»¤¤$src/Composer/Script/PackageEvent.phpœlYקÿÉ ¤$src/Composer/Script/ScriptEvents.phpPlY×^P<>¶¤ src/Composer/SelfUpdate/Keys.php<68>lY×^<5E> îÊN¤$src/Composer/SelfUpdate/Versions.phpilY×^i¤ src/Composer/Util/AuthHelper.phpËlY×>zx¤src/Composer/Util/Bitbucket.php*lY×^*,Lšk¤$src/Composer/Util/ComposerMirror.php±lY×­½øؤ%src/Composer/Util/ConfigValidator.php÷lY×v•Í¤"src/Composer/Util/ErrorHandler.php»lY×Ork¤ src/Composer/Util/Filesystem.phpm/lY×^m/Çë¡ú¤src/Composer/Util/Git.php˜/lY×^˜/ʹsrc/Composer/Util/GitHub.php| lY×^| `0tü¤src/Composer/Util/GitLab.php¬ lY×B3 ë¤src/Composer/Util/Hg.php¾lY× <0C>¤src/Composer/Util/IniHelper.phphlY×^h;F$src/Composer/Util/NoProxyPattern.php|lY×^|¸|ää¤#src/Composer/Util/PackageSorter.phpÞlY×ê×ìY¤src/Composer/Util/Perforce.php¸2lY×^¸2Ás&}¤src/Composer/Util/Platform.phpülY×s­fç¤%src/Composer/Util/ProcessExecutor.php$ lY×^$ ¨Nó¤&src/Composer/Util/RemoteFilesystem.php-rlY×^-r(\<5C>À¤src/Composer/Util/Silencer.phpélYדVjf¤!src/Composer/Util/SpdxLicense.phplY×^¾7
ñ¤*src/Composer/Util/StreamContextFactory.phplY×^CÉ…ù¤src/Composer/Util/Svn.php,lY×^,Ì žÄ¤src/Composer/Util/TlsHelper.phpL
lY×^L
" i¤src/Composer/Util/Url.php£lY×3œÉܤsrc/Composer/Util/Zip.php³lY×äŠÎª¤src/Composer/XdebugHandler.phpðlY×zÓf~¤src/bootstrap.php¹lY×I}œ¤%src/Composer/Autoload/ClassLoader.php“4lY×^“4²z<C2B2>¤#res/composer-repository-schema.jsonðlY×<00>GÐà¤res/composer-schema.jsonM<6E>lY×^M<>_Τ6vendor/composer/spdx-licenses/res/spdx-exceptions.jsonä
lY×
P•Êª¤4vendor/composer/spdx-licenses/res/spdx-licenses.jsonžlY×^ž¿T‡î¤4vendor/symfony/console/Resources/bin/hiddeninput.exe$lY×^$<>¥v¤&vendor/symfony/console/Application.php=XlY×^=X<00> S¤*vendor/symfony/console/Command/Command.phpî"lY×^î"x°jÕ¤.vendor/symfony/console/Command/HelpCommand.phpØlYצÚ-:¤.vendor/symfony/console/Command/ListCommand.phpZlY×^Z»w(vendor/symfony/console/ConsoleEvents.phpélY×RÛÔe¤<vendor/symfony/console/Descriptor/ApplicationDescription.phpÐlY×™Ž5°¤0vendor/symfony/console/Descriptor/Descriptor.php<68>lY×^<5E>¿N•¤9vendor/symfony/console/Descriptor/DescriptorInterface.phpülY×±Qµ¤4vendor/symfony/console/Descriptor/JsonDescriptor.phpÜ lY×<>ɤ8vendor/symfony/console/Descriptor/MarkdownDescriptor.php¶lY×·Ô;ݤ4vendor/symfony/console/Descriptor/TextDescriptor.php¼lY×òç3vendor/symfony/console/Descriptor/XmlDescriptor.phplY×^b{<¤4vendor/symfony/console/Event/ConsoleCommandEvent.php°lY×!Ȥ-vendor/symfony/console/Event/ConsoleEvent.phpÅlY×ÒxÛ\¤6vendor/symfony/console/Event/ConsoleExceptionEvent.phplY×^á2é¤6vendor/symfony/console/Event/ConsoleTerminateEvent.phpzlY×^z³,îL¤=vendor/symfony/console/Exception/CommandNotFoundException.phpÔlY×È÷ L¤7vendor/symfony/console/Exception/ExceptionInterface.phpflY×^f¡ABª¤=vendor/symfony/console/Exception/InvalidArgumentException.php¦lY×Ö̽Z¤;vendor/symfony/console/Exception/InvalidOptionException.php¦lY×Ë×3vendor/symfony/console/Exception/LogicException.phplY×^ÍO\e¤5vendor/symfony/console/Exception/RuntimeException.phplY×^Ùí,6¤4vendor/symfony/console/Formatter/OutputFormatter.php6lY×^6?=¨¤=vendor/symfony/console/Formatter/OutputFormatterInterface.phpŒlY×òññÀ¤9vendor/symfony/console/Formatter/OutputFormatterStyle.phpFlY×^F𦴤Bvendor/symfony/console/Formatter/OutputFormatterStyleInterface.php„lY×^„÷½>vendor/symfony/console/Formatter/OutputFormatterStyleStack.php@lY×^@G¨ýU¤6vendor/symfony/console/Helper/DebugFormatterHelper.phpylY×^yÌ8ÆФ2vendor/symfony/console/Helper/DescriptorHelper.phpwlY×^w.vendor/symfony/console/Helper/DialogHelper.phplY×^¹ÜÃ_¤1vendor/symfony/console/Helper/FormatterHelper.phpdlY×^d§×,¸¤(vendor/symfony/console/Helper/Helper.php«lY×!<21>§—¤1vendor/symfony/console/Helper/HelperInterface.phpålY׊ ¤+vendor/symfony/console/Helper/HelperSet.phpÊlY×áÏW"¤2vendor/symfony/console/Helper/InputAwareHelper.phpclY×^cÌøƒ¤/vendor/symfony/console/Helper/ProcessHelper.phpÓ lYשw-vendor/symfony/console/Helper/ProgressBar.phpl%lY×^l% díÛ¤0vendor/symfony/console/Helper/ProgressHelper.php]lY×^]ù»‰X¤3vendor/symfony/console/Helper/ProgressIndicator.phpNlY×^Nÿ§³l¤0vendor/symfony/console/Helper/QuestionHelper.phpllY×^lNtó¤7vendor/symfony/console/Helper/SymfonyQuestionHelper.php
lY×^
- ؤ'vendor/symfony/console/Helper/Table.phpÄ*lY×^Ä*¾™ØT¤+vendor/symfony/console/Helper/TableCell.php<68>lY×^<5E>åV^¤-vendor/symfony/console/Helper/TableHelper.php lY×^ uô™¤0vendor/symfony/console/Helper/TableSeparator.phpÊlY×az¤,vendor/symfony/console/Helper/TableStyle.php
lY×^
_ÍI"¤*vendor/symfony/console/Input/ArgvInput.phplY×^×ö†›¤+vendor/symfony/console/Input/ArrayInput.php) lY×^) ¥Ñ&vendor/symfony/console/Input/Input.php£ lY× f¡?¤.vendor/symfony/console/Input/InputArgument.phplY×^D £¤4vendor/symfony/console/Input/InputAwareInterface.php˜lY×^˜­O°¤0vendor/symfony/console/Input/InputDefinition.php†lY×^†¤U)¤¤/vendor/symfony/console/Input/InputInterface.php£lY×ÆBŒ'¤,vendor/symfony/console/Input/InputOption.php lY×^ \¢Ü=¤,vendor/symfony/console/Input/StringInput.phpšlYמµ è¤vendor/symfony/console/LICENSE)lY×^)NUN½¤/vendor/symfony/console/Logger/ConsoleLogger.php0 lY×^0 <> ¸¤0vendor/symfony/console/Output/BufferedOutput.php_lY×^_ >P¤/vendor/symfony/console/Output/ConsoleOutput.php±lY×nì!f¤8vendor/symfony/console/Output/ConsoleOutputInterface.phpàlYׇ†Æʤ,vendor/symfony/console/Output/NullOutput.phpÏlY×®˜(vendor/symfony/console/Output/Output.php˜ lY×^˜ 0p¤1vendor/symfony/console/Output/OutputInterface.phplY×^ì.vendor/symfony/console/Output/StreamOutput.php<68>lY×^<5E>ÄOç¤2vendor/symfony/console/Question/ChoiceQuestion.phpx
lY×^x
W€!¤8vendor/symfony/console/Question/ConfirmationQuestion.phpèlY×/Ô<>¤,vendor/symfony/console/Question/Question.phpÎ lY×lF¤ vendor/symfony/console/Shell.phpælY×¼XÒA¤,vendor/symfony/console/Style/OutputStyle.php\lY×^\wפ¤/vendor/symfony/console/Style/StyleInterface.phpÏlY×&nÅѤ-vendor/symfony/console/Style/SymfonyStyle.phpälY×­å (¤3vendor/symfony/console/Tester/ApplicationTester.phpÏlY×sž9i¤/vendor/symfony/console/Tester/CommandTester.phpªlY׬K (vendor/symfony/debug/BufferingLogger.phptlY×^t=hܤvendor/symfony/debug/Debug.php,lY×^,Ë~Ž.¤)vendor/symfony/debug/DebugClassLoader.phpµlY×1rEÓ¤%vendor/symfony/debug/ErrorHandler.phpHlY×^H¹:D#¤9vendor/symfony/debug/Exception/ClassNotFoundException.phplY×^i‰æô¤8vendor/symfony/debug/Exception/ContextErrorException.php˜lY×^˜-
d2¤1vendor/symfony/debug/Exception/DummyException.phplY×^®+Ãê¤6vendor/symfony/debug/Exception/FatalErrorException.phplY×^™Ä¤6vendor/symfony/debug/Exception/FatalThrowableError.phpWlY×^W?àèK¤3vendor/symfony/debug/Exception/FlattenException.php¼lY× פ7vendor/symfony/debug/Exception/OutOfMemoryException.php~lY×^~ë¨oâ¤=vendor/symfony/debug/Exception/UndefinedFunctionException.phpšlY×<00>ñJÀ¤;vendor/symfony/debug/Exception/UndefinedMethodException.php˜lY×^˜nöêؤ)vendor/symfony/debug/ExceptionHandler.php)3lY×^)3<00>h5=¤Ivendor/symfony/debug/FatalErrorHandler/ClassNotFoundFatalErrorHandler.phpAlY×^AϤ¹l¤Evendor/symfony/debug/FatalErrorHandler/FatalErrorHandlerInterface.phplY×^ĹBV¤Mvendor/symfony/debug/FatalErrorHandler/UndefinedFunctionFatalErrorHandler.phpxlY×^x~ò"¤Kvendor/symfony/debug/FatalErrorHandler/UndefinedMethodFatalErrorHandler.phpOlY×^O<00>ž¦*¤vendor/symfony/debug/LICENSE)lY×^)NUN½¤:vendor/symfony/filesystem/Exception/ExceptionInterface.phpilY×^i$ ÿ›¤=vendor/symfony/filesystem/Exception/FileNotFoundException.php¼lY×pí\¶¤3vendor/symfony/filesystem/Exception/IOException.php‡lY×^‡€ü#Ѥ<vendor/symfony/filesystem/Exception/IOExceptionInterface.php¦lY×jÙwM¤(vendor/symfony/filesystem/Filesystem.phpc4lY×^c4×@þ¤!vendor/symfony/filesystem/LICENSE)lY×^)NUN½¤)vendor/symfony/filesystem/LockHandler.phpölYןZµ1¤1vendor/symfony/finder/Adapter/AbstractAdapter.php\ lY×^\ hˆ5vendor/symfony/finder/Adapter/AbstractFindAdapter.php<68>lY×^<5E>HC€/¤2vendor/symfony/finder/Adapter/AdapterInterface.phplY×^Mþ¤0vendor/symfony/finder/Adapter/BsdFindAdapter.php3lY×^375$·¤0vendor/symfony/finder/Adapter/GnuFindAdapter.phplY×^Ÿ`]¤,vendor/symfony/finder/Adapter/PhpAdapter.phpôlY×Þdè;¤/vendor/symfony/finder/Comparator/Comparator.php<68>lY×^<5E>¾üœµ¤3vendor/symfony/finder/Comparator/DateComparator.php#lY×^#°Τ5vendor/symfony/finder/Comparator/NumberComparator.php|lY×^|ITÇͤ9vendor/symfony/finder/Exception/AccessDeniedException.php„lY×^„½¾sœ¤;vendor/symfony/finder/Exception/AdapterFailureException.php¬lY×w6vendor/symfony/finder/Exception/ExceptionInterface.php„lY×^„Gz-¤Avendor/symfony/finder/Exception/OperationNotPermitedException.php)lY×^)x§e¤@vendor/symfony/finder/Exception/ShellCommandFailureException.phpºlYטþ˜¤/vendor/symfony/finder/Expression/Expression.phplY×^i¥:Ť)vendor/symfony/finder/Expression/Glob.phpflY×^fDÞcj¤*vendor/symfony/finder/Expression/Regex.phplY×^ü(ÃϤ3vendor/symfony/finder/Expression/ValueInterface.phpÍlY×\p4†¤ vendor/symfony/finder/Finder.phpc.lY×^c.:ˆ5g¤vendor/symfony/finder/Glob.phpLlY×^LjÍ9פ7vendor/symfony/finder/Iterator/CustomFilterIterator.php]lY×^]ÎoÅƤ:vendor/symfony/finder/Iterator/DateRangeFilterIterator.phpxlY×^xô;vendor/symfony/finder/Iterator/DepthRangeFilterIterator.phpîlY×üÍ<C3BC>Avendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.phpílY×nõH¤4vendor/symfony/finder/Iterator/FilePathsIterator.php#lY×^#G?T½¤9vendor/symfony/finder/Iterator/FileTypeFilterIterator.phpZlY×^Z(&ø¤<vendor/symfony/finder/Iterator/FilecontentFilterIterator.php5lY×^5ší¤9vendor/symfony/finder/Iterator/FilenameFilterIterator.phprlY×^rt1vendor/symfony/finder/Iterator/FilterIterator.phpÃlYך+µÞ¤=vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php-lY×^-ºÎÒ_¤5vendor/symfony/finder/Iterator/PathFilterIterator.phpÐlY×=vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php lY×^ ë]í»¤:vendor/symfony/finder/Iterator/SizeRangeFilterIterator.phpelY×^eŸ’áé¤3vendor/symfony/finder/Iterator/SortableIterator.php+lY×^+õÝË ¤vendor/symfony/finder/LICENSE)lY×^)NUN½¤'vendor/symfony/finder/Shell/Command.php> lY×^> _~u ¤%vendor/symfony/finder/Shell/Shell.phprlY×^rþpN¤%vendor/symfony/finder/SplFileInfo.phplY×^þíù¤'vendor/symfony/polyfill-ctype/Ctype.phpH lY×^H ³<>Õݤ%vendor/symfony/polyfill-ctype/LICENSE)lY×^)´`e0¤+vendor/symfony/polyfill-ctype/bootstrap.phpälY×—o£¤(vendor/symfony/polyfill-mbstring/LICENSE)lY×^)“\ª¤-vendor/symfony/polyfill-mbstring/Mbstring.php€GlY×^€Gɖз¤@vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php÷@lY×^÷@õžØ¤Fvendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.phpãlY×öy_•¤@vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.phpfAlY×^fAÚf”ߤ.vendor/symfony/polyfill-mbstring/bootstrap.php)lY×^)p¼B¤7vendor/symfony/process/Exception/ExceptionInterface.phpflY×^f]ö>T¤=vendor/symfony/process/Exception/InvalidArgumentException.php¨lY×ÐÀ+_¤3vendor/symfony/process/Exception/LogicException.php”lY×^” ³ãñ¤;vendor/symfony/process/Exception/ProcessFailedException.phpxlY×^x¨Ìzy¤=vendor/symfony/process/Exception/ProcessTimedOutException.phplY×^«¤5vendor/symfony/process/Exception/RuntimeException.php˜lY×^˜¢Ø:¤+vendor/symfony/process/ExecutableFinder.php<68>lY×^<5E>ûus€¤vendor/symfony/process/LICENSE)lY×^)NUN½¤.vendor/symfony/process/PhpExecutableFinder.phpÏlY×Î%h¤%vendor/symfony/process/PhpProcess.phpülYׇjûü¤.vendor/symfony/process/Pipes/AbstractPipes.php½lY×æ¤/vendor/symfony/process/Pipes/PipesInterface.phpDlY×^DvØ*vendor/symfony/process/Pipes/UnixPipes.php>lY×^>ª•ir¤-vendor/symfony/process/Pipes/WindowsPipes.phpp lY×^p âU~ɤ"vendor/symfony/process/Process.php·RlY×^·RŠ`Õ¤)vendor/symfony/process/ProcessBuilder.phpâ
lY×
M¶¤'vendor/symfony/process/ProcessUtils.phpQlY×^Qb-$m¤vendor/seld/jsonlint/LICENSE"lY×^"aƒsy¤@vendor/seld/jsonlint/src/Seld/JsonLint/DuplicateKeyException.php*lY×^*•pñ¤5vendor/seld/jsonlint/src/Seld/JsonLint/JsonParser.php_2lY×^_2Š0vendor/seld/jsonlint/src/Seld/JsonLint/Lexer.php'lY×^'T×5ã¤;vendor/seld/jsonlint/src/Seld/JsonLint/ParsingException.phplY×^‰²ñ¤4vendor/seld/jsonlint/src/Seld/JsonLint/Undefined.php>lY×^>ÿqŸŸ¤(vendor/justinrainbow/json-schema/LICENSE lY×^ ºç©¤.vendor/justinrainbow/json-schema/demo/demo.phpñlY×fNvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/BaseConstraint.php¡ lY׆wÌl¤Tvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/CollectionConstraint.php<68>
lY×^<5E>
ÍèÓ¯¤Jvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php§ lYפSvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ConstraintInterface.php¼lY×ÿ Qœ¤Nvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/EnumConstraint.php]lY×^]VŽU<¤Gvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Factory.phpã lY× á0;¤Pvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/FormatConstraint.php…lY×^…“TœÚ¤Pvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/NumberConstraint.php‡ lY×^‡ ï›Pvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/ObjectConstraint.phpÃlYשżx¤Pvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/SchemaConstraint.php0 lY×^0 ×j´˜¤Pvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/StringConstraint.phplY×^¥wš‡¤Xvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/LooseTypeCheck.phpalY×^a qäYvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/StrictTypeCheck.php—lY×^—4~¾ ¤\vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeCheck/TypeCheckInterface.php‰lY×^‰“µ+j¤Nvendor/justinrainbow/json-schema/src/JsonSchema/Constraints/TypeConstraint.php&lY×^&4˜©T¤Svendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.phpS"lY×^S"¼¾õ:¤Fvendor/justinrainbow/json-schema/src/JsonSchema/Entity/JsonPointer.phpèlY×{N¤Pvendor/justinrainbow/json-schema/src/JsonSchema/Exception/ExceptionInterface.phpIlY×^I%|°¤Vvendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidArgumentException.php•lY×^•àG¤Tvendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidConfigException.phpllY×^lA!LפTvendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaException.phpllY×^lè2÷þ¤]vendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSchemaMediaTypeException.phpulY×^u=hç¤Wvendor/justinrainbow/json-schema/src/JsonSchema/Exception/InvalidSourceUriException.phpwlY×^wN-ò[¤Svendor/justinrainbow/json-schema/src/JsonSchema/Exception/JsonDecodingException.phpÞlY×\¸
¤Wvendor/justinrainbow/json-schema/src/JsonSchema/Exception/ResourceNotFoundException.phpolY×^opíÛù¤Nvendor/justinrainbow/json-schema/src/JsonSchema/Exception/RuntimeException.php…lY×^…%…—¤^vendor/justinrainbow/json-schema/src/JsonSchema/Exception/UnresolvableJsonPointerException.php€lY×^€u-#1¤Rvendor/justinrainbow/json-schema/src/JsonSchema/Exception/UriResolverException.phpjlY×^jå><3E>¤Qvendor/justinrainbow/json-schema/src/JsonSchema/Exception/ValidationException.phpflY×^f¬¤„þ¤Kvendor/justinrainbow/json-schema/src/JsonSchema/Iterator/ObjectIterator.phpþlY×M<>„õ¤;vendor/justinrainbow/json-schema/src/JsonSchema/Rfc3339.php lY×^ f4÷³¤Avendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.phpœ lY×åfO¤Jvendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorageInterface.phplY×^oŠ+}¤Tvendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/AbstractRetriever.phpálY×[þA<C3BE>¤Gvendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php¥lY×Ô§Lb¤Rvendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/FileGetContents.php%lY×^%5" ¤Rvendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php,lY×^,1•5þ¤Xvendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/UriRetrieverInterface.php®lY×ÿ‹Áå¤Cvendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriResolver.php lY×^ £Ÿ)à¤Dvendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.phpFlY×^F¨IaD¤Hvendor/justinrainbow/json-schema/src/JsonSchema/UriResolverInterface.phpƒlY×J€¤Ivendor/justinrainbow/json-schema/src/JsonSchema/UriRetrieverInterface.php…lY×^…íæ=vendor/justinrainbow/json-schema/src/JsonSchema/Validator.phpvlY×^võÍ%vendor/composer/spdx-licenses/LICENSElY×^Bhí¤2vendor/composer/spdx-licenses/src/SpdxLicenses.phpHlY×^H͉T¤vendor/composer/semver/LICENSElY×^Bhí¤)vendor/composer/semver/src/Comparator.phplY×^wlƒï¤<vendor/composer/semver/src/Constraint/AbstractConstraint.phpîlY×Õ­w-¤4vendor/composer/semver/src/Constraint/Constraint.php lY×^ I&â¤=vendor/composer/semver/src/Constraint/ConstraintInterface.phpßlY×0C,‡¤9vendor/composer/semver/src/Constraint/EmptyConstraint.phpälY×ïõ‚³¤9vendor/composer/semver/src/Constraint/MultiConstraint.php,lY×^,%vendor/composer/semver/src/Semver.phplY×^?nݤ,vendor/composer/semver/src/VersionParser.php¸*lY×^¸*GLÇí¤!vendor/composer/ca-bundle/LICENSElY×^*!^`¤*vendor/composer/ca-bundle/src/CaBundle.phpRlY×^R!Ã%¤&vendor/composer/xdebug-handler/LICENSE)lY×^)#Ô;^¤0vendor/composer/xdebug-handler/src/PhpConfig.php´lY×^´*D¤.vendor/composer/xdebug-handler/src/Process.phpp lY×^p i,i¤-vendor/composer/xdebug-handler/src/Status.php
lY×^
$Ÿv-¤4vendor/composer/xdebug-handler/src/XdebugHandler.php:!lY×^:! ðU ¤vendor/psr/log/LICENSE=lY×^=p±ŽO¤)vendor/psr/log/Psr/Log/AbstractLogger.php;lY×^;ñ>3[¤3vendor/psr/log/Psr/Log/InvalidArgumentException.php`lY×^` ˆX1¤#vendor/psr/log/Psr/Log/LogLevel.phpûlY×jðñ8¤/vendor/psr/log/Psr/Log/LoggerAwareInterface.php|lY×^|$£ˆ¤+vendor/psr/log/Psr/Log/LoggerAwareTrait.php§lY×T½úB¤*vendor/psr/log/Psr/Log/LoggerInterface.phpÈlYךx¤&vendor/psr/log/Psr/Log/LoggerTrait.phpklY×^k£}‰’¤%vendor/psr/log/Psr/Log/NullLogger.php lY×^ ÆDi¯¤)vendor/psr/log/Psr/Log/Test/DummyTest.phpplY×^pΤ3vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php lY×^ $/Ò¤*vendor/psr/log/Psr/Log/Test/TestLogger.php<lY×^<þ(åI¤vendor/autoload.phplY×^®WÍ.¤'vendor/composer/autoload_namespaces.phpdlY×^dZ¡¦H¤!vendor/composer/autoload_psr4.php÷lY×Å*š¤%vendor/composer/autoload_classmap.phpdlY×^dZ¡¦H¤"vendor/composer/autoload_files.phplY×^¥ ®¤!vendor/composer/autoload_real.phpLlY×^L«ñ¹ô¤#vendor/composer/autoload_static.php§
lY×
¦é‹¤¤vendor/composer/ClassLoader.php¨lY×xää`¤(vendor/composer/ca-bundle/res/cacert.pemÇilY×^Çi4ËŸ‡¤ bin/composerÊlY×<07>4K¤LICENSE.lY×^. Õ¤<?php
namespace Composer\Autoload;
use Composer\Config;
use Composer\EventDispatcher\EventDispatcher;
use Composer\Installer\InstallationManager;
use Composer\IO\IOInterface;
use Composer\Package\AliasPackage;
use Composer\Package\PackageInterface;
use Composer\Repository\InstalledRepositoryInterface;
use Composer\Util\Filesystem;
use Composer\Script\ScriptEvents;
use Composer\Util\PackageSorter;
class AutoloadGenerator
{
private $eventDispatcher;
private $io;
private $devMode = false;
private $classMapAuthoritative = false;
private $apcu = false;
private $runScripts = false;
public function __construct(EventDispatcher $eventDispatcher, IOInterface $io = null)
{
$this->eventDispatcher = $eventDispatcher;
$this->io = $io;
}
public function setDevMode($devMode = true)
{
$this->devMode = (bool) $devMode;
}
public function setClassMapAuthoritative($classMapAuthoritative)
{
$this->classMapAuthoritative = (bool) $classMapAuthoritative;
}
public function setApcu($apcu)
{
$this->apcu = (bool) $apcu;
}
public function setRunScripts($runScripts = true)
{
$this->runScripts = (bool) $runScripts;
}
public function dump(Config $config, InstalledRepositoryInterface $localRepo, PackageInterface $mainPackage, InstallationManager $installationManager, $targetDir, $scanPsrPackages = false, $suffix = '')
{
if ($this->classMapAuthoritative) {
$scanPsrPackages = true;
}
if ($this->runScripts) {
$this->eventDispatcher->dispatchScript(ScriptEvents::PRE_AUTOLOAD_DUMP, $this->devMode, array(), array(
'optimize' => (bool) $scanPsrPackages,
));
}
$filesystem = new Filesystem();
$filesystem->ensureDirectoryExists($config->get('vendor-dir'));
$basePath = $filesystem->normalizePath(realpath(realpath(getcwd())));
$vendorPath = $filesystem->normalizePath(realpath(realpath($config->get('vendor-dir'))));
$useGlobalIncludePath = (bool) $config->get('use-include-path');
$prependAutoloader = $config->get('prepend-autoloader') === false ? 'false' : 'true';
$targetDir = $vendorPath.'/'.$targetDir;
$filesystem->ensureDirectoryExists($targetDir);
$vendorPathCode = $filesystem->findShortestPathCode(realpath($targetDir), $vendorPath, true);
$vendorPathCode52 = str_replace('__DIR__', 'dirname(__FILE__)', $vendorPathCode);
$vendorPathToTargetDirCode = $filesystem->findShortestPathCode($vendorPath, realpath($targetDir), true);
$appBaseDirCode = $filesystem->findShortestPathCode($vendorPath, $basePath, true);
$appBaseDirCode = str_replace('__DIR__', '$vendorDir', $appBaseDirCode);
$namespacesFile = <<<EOF
<?php
// autoload_namespaces.php @generated by Composer
\$vendorDir = $vendorPathCode52;
\$baseDir = $appBaseDirCode;
return array(
EOF;
$psr4File = <<<EOF
<?php
// autoload_psr4.php @generated by Composer
\$vendorDir = $vendorPathCode52;
\$baseDir = $appBaseDirCode;
return array(
EOF;
$packageMap = $this->buildPackageMap($installationManager, $mainPackage, $localRepo->getCanonicalPackages());
$autoloads = $this->parseAutoloads($packageMap, $mainPackage, $this->devMode === false);
foreach ($autoloads['psr-0'] as $namespace => $paths) {
$exportedPaths = array();
foreach ($paths as $path) {
$exportedPaths[] = $this->getPathCode($filesystem, $basePath, $vendorPath, $path);
}
$exportedPrefix = var_export($namespace, true);
$namespacesFile .= " $exportedPrefix => ";
$namespacesFile .= "array(".implode(', ', $exportedPaths)."),\n";
}
$namespacesFile .= ");\n";
foreach ($autoloads['psr-4'] as $namespace => $paths) {
$exportedPaths = array();
foreach ($paths as $path) {
$exportedPaths[] = $this->getPathCode($filesystem, $basePath, $vendorPath, $path);
}
$exportedPrefix = var_export($namespace, true);
$psr4File .= " $exportedPrefix => ";
$psr4File .= "array(".implode(', ', $exportedPaths)."),\n";
}
$psr4File .= ");\n";
$classmapFile = <<<EOF
<?php
// autoload_classmap.php @generated by Composer
\$vendorDir = $vendorPathCode52;
\$baseDir = $appBaseDirCode;
return array(
EOF;
$targetDirLoader = null;
$mainAutoload = $mainPackage->getAutoload();
if ($mainPackage->getTargetDir() && !empty($mainAutoload['psr-0'])) {
$levels = substr_count($filesystem->normalizePath($mainPackage->getTargetDir()), '/') + 1;
$prefixes = implode(', ', array_map(function ($prefix) {
return var_export($prefix, true);
}, array_keys($mainAutoload['psr-0'])));
$baseDirFromTargetDirCode = $filesystem->findShortestPathCode($targetDir, $basePath, true);
$targetDirLoader = <<<EOF
public static function autoload(\$class)
{
\$dir = $baseDirFromTargetDirCode . '/';
\$prefixes = array($prefixes);
foreach (\$prefixes as \$prefix) {
if (0 !== strpos(\$class, \$prefix)) {
continue;
}
\$path = \$dir . implode('/', array_slice(explode('\\\\', \$class), $levels)).'.php';
if (!\$path = stream_resolve_include_path(\$path)) {
return false;
}
require \$path;
return true;
}
}
EOF;
}
$blacklist = null;
if (!empty($autoloads['exclude-from-classmap'])) {
$blacklist = '{(' . implode('|', $autoloads['exclude-from-classmap']) . ')}';
}
$classMap = array();
$ambiguousClasses = array();
$scannedFiles = array();
foreach ($autoloads['classmap'] as $dir) {
$classMap = $this->addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, null, null, $classMap, $ambiguousClasses, $scannedFiles);
}
if ($scanPsrPackages) {
$namespacesToScan = array();
foreach (array('psr-4', 'psr-0') as $psrType) {
foreach ($autoloads[$psrType] as $namespace => $paths) {
$namespacesToScan[$namespace][] = array('paths' => $paths, 'type' => $psrType);
}
}
krsort($namespacesToScan);
foreach ($namespacesToScan as $namespace => $groups) {
foreach ($groups as $group) {
foreach ($group['paths'] as $dir) {
$dir = $filesystem->normalizePath($filesystem->isAbsolutePath($dir) ? $dir : $basePath.'/'.$dir);
if (!is_dir($dir)) {
continue;
}
$classMap = $this->addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, $namespace, $group['type'], $classMap, $ambiguousClasses, $scannedFiles);
}
}
}
}
foreach ($ambiguousClasses as $className => $ambigiousPaths) {
$cleanPath = str_replace(array('$vendorDir . \'', '$baseDir . \'', "',\n"), array($vendorPath, $basePath, ''), $classMap[$className]);
$this->io->writeError(
'<warning>Warning: Ambiguous class resolution, "'.$className.'"'.
' was found '. (count($ambigiousPaths) + 1) .'x: in "'.$cleanPath.'" and "'. implode('", "', $ambigiousPaths) .'", the first will be used.</warning>'
);
}
ksort($classMap);
foreach ($classMap as $class => $code) {
$classmapFile .= ' '.var_export($class, true).' => '.$code;
}
$classmapFile .= ");\n";
if (!$suffix) {
if (!$config->get('autoloader-suffix') && is_readable($vendorPath.'/autoload.php')) {
$content = file_get_contents($vendorPath.'/autoload.php');
if (preg_match('{ComposerAutoloaderInit([^:\s]+)::}', $content, $match)) {
$suffix = $match[1];
}
}
if (!$suffix) {
$suffix = $config->get('autoloader-suffix') ?: md5(uniqid('', true));
}
}
$this->filePutContentsIfModified($targetDir.'/autoload_namespaces.php', $namespacesFile);
$this->filePutContentsIfModified($targetDir.'/autoload_psr4.php', $psr4File);
$this->filePutContentsIfModified($targetDir.'/autoload_classmap.php', $classmapFile);
$includePathFilePath = $targetDir.'/include_paths.php';
if ($includePathFileContents = $this->getIncludePathsFile($packageMap, $filesystem, $basePath, $vendorPath, $vendorPathCode52, $appBaseDirCode)) {
$this->filePutContentsIfModified($includePathFilePath, $includePathFileContents);
} elseif (file_exists($includePathFilePath)) {
unlink($includePathFilePath);
}
$includeFilesFilePath = $targetDir.'/autoload_files.php';
if ($includeFilesFileContents = $this->getIncludeFilesFile($autoloads['files'], $filesystem, $basePath, $vendorPath, $vendorPathCode52, $appBaseDirCode)) {
$this->filePutContentsIfModified($includeFilesFilePath, $includeFilesFileContents);
} elseif (file_exists($includeFilesFilePath)) {
unlink($includeFilesFilePath);
}
$this->filePutContentsIfModified($targetDir.'/autoload_static.php', $this->getStaticFile($suffix, $targetDir, $vendorPath, $basePath, $staticPhpVersion));
$this->filePutContentsIfModified($vendorPath.'/autoload.php', $this->getAutoloadFile($vendorPathToTargetDirCode, $suffix));
$this->filePutContentsIfModified($targetDir.'/autoload_real.php', $this->getAutoloadRealFile(true, (bool) $includePathFileContents, $targetDirLoader, (bool) $includeFilesFileContents, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader, $staticPhpVersion));
$this->safeCopy(__DIR__.'/ClassLoader.php', $targetDir.'/ClassLoader.php');
$this->safeCopy(__DIR__.'/../../../LICENSE', $targetDir.'/LICENSE');
if ($this->runScripts) {
$this->eventDispatcher->dispatchScript(ScriptEvents::POST_AUTOLOAD_DUMP, $this->devMode, array(), array(
'optimize' => (bool) $scanPsrPackages,
));
}
return count($classMap);
}
private function filePutContentsIfModified($path, $content)
{
$currentContent = @file_get_contents($path);
if (!$currentContent || ($currentContent != $content)) {
return file_put_contents($path, $content);
}
return 0;
}
private function addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, $namespaceFilter, $autoloadType, array $classMap, array &$ambiguousClasses, array &$scannedFiles)
{
foreach ($this->generateClassMap($dir, $blacklist, $namespaceFilter, $autoloadType, true, $scannedFiles) as $class => $path) {
$pathCode = $this->getPathCode($filesystem, $basePath, $vendorPath, $path).",\n";
if (!isset($classMap[$class])) {
$classMap[$class] = $pathCode;
} elseif ($this->io && $classMap[$class] !== $pathCode && !preg_match('{/(test|fixture|example|stub)s?/}i', strtr($classMap[$class].' '.$path, '\\', '/'))) {
$ambiguousClasses[$class][] = $path;
}
}
return $classMap;
}
private function generateClassMap($dir, $blacklist, $namespaceFilter, $autoloadType, $showAmbiguousWarning, array &$scannedFiles)
{
return ClassMapGenerator::createMap($dir, $blacklist, $showAmbiguousWarning ? $this->io : null, $namespaceFilter, $autoloadType, $scannedFiles);
}
public function buildPackageMap(InstallationManager $installationManager, PackageInterface $mainPackage, array $packages)
{
$packageMap = array(array($mainPackage, ''));
foreach ($packages as $package) {
if ($package instanceof AliasPackage) {
continue;
}
$this->validatePackage($package);
$packageMap[] = array(
$package,
$installationManager->getInstallPath($package),
);
}
return $packageMap;
}
protected function validatePackage(PackageInterface $package)
{
$autoload = $package->getAutoload();
if (!empty($autoload['psr-4']) && null !== $package->getTargetDir()) {
$name = $package->getName();
$package->getTargetDir();
throw new \InvalidArgumentException("PSR-4 autoloading is incompatible with the target-dir property, remove the target-dir in package '$name'.");
}
if (!empty($autoload['psr-4'])) {
foreach ($autoload['psr-4'] as $namespace => $dirs) {
if ($namespace !== '' && '\\' !== substr($namespace, -1)) {
throw new \InvalidArgumentException("psr-4 namespaces must end with a namespace separator, '$namespace' does not, use '$namespace\\'.");
}
}
}
}
public function parseAutoloads(array $packageMap, PackageInterface $mainPackage, $filterOutRequireDevPackages = false)
{
$mainPackageMap = array_shift($packageMap);
if ($filterOutRequireDevPackages) {