tonydspaniard / yiinitializr-advanced

Yii Framework project structure boilerplate for advanced application requirements
67 stars 30 forks source link

Install problem #34

Closed jorgitoml closed 8 years ago

jorgitoml commented 8 years ago

Hi, I'm getting this error when installing:

C:\wamp\www\test_yiinitializr>composer self-update You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug You are already using composer version 1.1.1 (stable channel).

C:\wamp\www\test_yiinitializr>composer install You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug

Yiinitializr\Composer\Callback::preUpdate Updating your application to the latest available packages... Loading composer repositories with package information Warning: Accessing packages.phundament.com over http which is an insecure protocol. Updating dependencies (including require-dev)

  • Installing yiisoft/yii (dev-master 33af13b) Cloning 33af13bec1f8a59accac78e3383dc38760dc6781

Deprecation Notice: The callback Yiinitializr\Composer\Callback::postPackageInstall declared at C:\wamp\www\test_yiinitializr\common\lib\Yiinitializr\Composer\Callback.php accepts a Composer\Script\Event but post-package-install events use a Composer\Script\PackageEvent instance. Please adjust your type hint accordingly, see https://getcomposer.org/doc/articles/scripts.md#event-classes in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:303

Yiinitializr\Composer\Callback::postPackageInstall

Fatal error: Call to undefined method Composer\Script\Event::getOperation() in C:\wamp\www\test_yiinitializr\common\lib\Yiinitializr\Composer\Callback.php on line 123

Call Stack: 0.0083 429720 1. {main}() C:\ProgramData\ComposerSetup\bin\composer.phar:0 0.0085 432568 2. require('phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer') C:\ProgramData\ComposerSetup\bin\composer.phar:24 0.0564 5184992 3. Composer\Console\Application->run() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:43 0.0612 5646728 4. Symfony\Component\Console\Application->run() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:101 0.0627 5806384 5. Composer\Console\Application->doRun() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:123 0.6713 12373192 6. Symfony\Component\Console\Application->doRun() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:221 0.6715 12373640 7. Symfony\Component\Console\Application->doRunCommand() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:192 0.6715 12374168 8. Symfony\Component\Console\Command\Command->run() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:844 0.6725 12378608 9. Composer\Command\InstallCommand->execute() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Command/Command.php:259 0.6768 12856616 10. Composer\Installer->run() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/InstallCommand.php:133 0.6927 13290400 11. Composer\Installer->doInstall() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:215 64.2697 82666160 12. Composer\EventDispatcher\EventDispatcher->dispatchPackageEvent() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Installer.php:557 64.2698 82666712 13. Composer\EventDispatcher\EventDispatcher->doDispatch() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:115 64.2706 82670328 14. Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:209 64.2897 82671176 15. Yiinitializr\Composer\Callback::postPackageInstall() phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:255

This is my composer.json: { "name": "yiinitializr/advanced", "description": "Advanced project structure for Yii PHP framework.", "keywords": ["yii", "application", "web", "boilerplate", "template"], "homepage": "http://2amigos.us", "type": "yii-application", "license": "BSD-3-Clause", "minimum-stability": "dev", "config": { "vendor-dir": "common/lib/vendor", "secure-http": false }, "authors": [ { "name": "Antonio Ramirez Cobos", "email": "amigo.cobos@gmail.com", "homepage": "http://www.ramirezcobos.com" }, { "name": "Matt Tabin", "email": "amigo.tabin@gmail.com", "homepage": "http://2amigos.us" } ], "repositories": [ { "type": "composer", "url": "http://packages.phundament.com" } ], "require": { "yiisoft/yii": "dev-master", "2amigos/yiiwheels": "dev-master" }, "autoload": { "psr-0": { "Yiinitializr": "common/lib/" } }, "scripts": { "pre-install-cmd": "Yiinitializr\Composer\Callback::preInstall", "post-install-cmd": "Yiinitializr\Composer\Callback::postInstall", "pre-update-cmd": "Yiinitializr\Composer\Callback::preUpdate", "post-update-cmd": "Yiinitializr\Composer\Callback::postUpdate", "post-package-install": [ "Yiinitializr\Composer\Callback::postPackageInstall" ], "post-package-update": [ "Yiinitializr\Composer\Callback::postPackageUpdate" ] } }

Can you help me? Best regards. Jordi

jorgitoml commented 8 years ago

Solved. You have to overwrite this files. Regards.

Note: Delete the ".txt" extension.

Callback.php.txt composer.json.txt