In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what the new features of composer 2.0 are, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's learn about it!
1. What are the new features?
For command line (CLI) users
The new platform check feature checks the runtime PHP version and available extensions to ensure that they match the project dependencies. If a mismatch is found, it exits and displays the error details. It is recommended that you use the production PHP process to run composer check-platform-reqs during build or deployment
If a package exists in a higher priority repository, the package is now completely ignored in the lower priority repository. For more information, see Repository priority.
Invalid PSR-0 / PSR-4 class configuration no longer loads automatically in optimized autoloader mode, according to the warning introduced in 1.10
On linux systems that support the XDG basic directory specification, Composer now prefers to use XDG_CONFIG_DIR/composer rather than ~ / .composer (if both are available 1.x use ~ / .composer first first)
The package name must now conform to our naming guidelines, or Composer will have an error and stop running. (https://github.com/composer/composer/blob/2.0.0/doc/04-schema.md#name)
-- no-suggest is not recommended because it is no longer needed
PEAR support (repository, downloader, etc.) has been removed
Update now first lists the changes to the composer.lock file (update steps), and then lists the changes applied when the lock files are installed in the vendor directory (installation steps)
If HTTPS_PROXY_REQUEST_FULLURI is not specified, it will now default to false, as this seems to work better in most environments
Dev-trunk, dev-master and dev-default are no longer aliases for each other. Now keep the exact branch name.
two。 Detailed differences in event flow during dependency resolution, composer updates, and installation
Composer v1
Composer parsing dependencies (scheduling PRE/POST_DEPENDENCIES_SOLVING)
It then iterates through all the packages step by step (dispatch PRE_PACKAGE_INSTALL / UPDATE / UNINSTALL, then schedule PRE_FILE_DOWNLOAD as needed, and then POST_PACKAGE_ *).
Finally, the lock file is written at the end.
Composer v2
The update and installation process has been split.
The update will:
Composer parsing dependencies (scheduling PRE_POOL_CREATE)
Then the lock file is written and the update ends.
Then install:
Send a complete list of actions to be performed to PRE_OPERATIONS_EXEC
Download all packages that are not in the cache in parallel (schedule PRE_FILE_DOWNLOAD for packages that are not already in the cache)
It then iterates through all the packages and performs updates / installations / uninstalls in parallel (first distributing PRE_PACKAGE_INSTALL / UPDATE / UNINSTALL and then releasing POST_PACKAGE_ *, but the last package launched may complete the installation before completing another installation).
These are all the contents of the article "what are the new features of composer 2.0?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.