Composer property incorrectly indicated
alejosv opened this issue · 2 comments
alejosv commented
According to this documentation the follow line
Lines 22 to 26 in f0ac133
It must be as follows:
"autoload": {
"psr-0": {
"Phalcon": "src//"
}
}
When installing from composer, the following error is being generated:
$ composer require pug-php/pug-phalcon
Using version ^1.2 for pug-php/pug-phalcon
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 9 installs, 0 updates, 0 removals
- Installing nodejs-php-fallback/nodejs-php-fallback (1.5.1): Downloading (100%)
- Installing js-transformer/js-transformer (1.0.0): Downloading (100%)
- Installing symfony/var-dumper (v5.0.4): Loading from cache
- Installing phug/phug (1.6.0): Downloading (100%)
- Installing phug/js-transformer-filter (1.2.0): Downloading (100%)
- Installing js-phpize/js-phpize (2.7.1): Downloading (100%)
- Installing js-phpize/js-phpize-phug (2.2.0): Downloading (100%)
- Installing pug-php/pug (3.4.0): Downloading (100%)
- Installing pug-php/pug-phalcon (1.2.0): Downloading (100%)
Writing lock file
Generating autoload files
Installation failed, reverting ./composer.json to its original content.
[InvalidArgumentException]
A non-empty PSR-4 prefix must end with a namespace separator.
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...
BTW: Thanks for this dependency.
kylekatarnls commented
I updated using PSR-4 that should also be a bit more optimized. I can't test it right now.
kylekatarnls commented
Fixed in 1.2.0.
Thanks.