Home > Backend Development > PHP Tutorial > composer 不能只更新某个文件吗?

composer 不能只更新某个文件吗?

WBOY
Release: 2016-06-06 20:14:01
Original
1651 people have browsed it

我只看到可以只更新某个包,有时候只想更新某个或某几个文件,不知道能不能做到,求解。

回复内容:

我只看到可以只更新某个包,有时候只想更新某个或某几个文件,不知道能不能做到,求解。

如果你只是想更新几个包,你可以像这样分别列出它们:
php composer.phar update vendor/package vendor/package2
你还可以使用通配符进行批量更新:
php composer.phar update vendor/*

文档里面都有的

不能 但是你可以自己创建一个包 继承 然后重写

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template