-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hi,
For IDEs to be able to provide autocompletion for a library compiled as a PHAR, they must be able to include it's content, which is only possible if the PHAR file has the .phar extension.
Currently phive install allows to change the target directory but not the target location (the location attribute in phars.xml).
For example when running phive install -c phpunit, it creates a phpunit file inside the tools directory of the project. But if you then write a test case like this:
class MyTest extends \PHPUnit\Framework\TestCase {}Your IDE will complain that the \PHPUnit\Framework\TestCase doesn't exist.
So now you have to:
- manually rename
tools/phpunittotools/phpunit.phar - manually edit the
locationattribute in.phive/phars.xmlto add the.pharextension
A minor nuisance, but which gets repeated for every project.
So it would be nice if we could either:
- have a flag to specify the full path of the installed phar, i.e.:
phive install -c -l tools/phpunit.phar phpunit - have a flag and/or config option to tell phive to always add/keep the
.pharextension.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels