I am new to symfony2 and I followed http://symfony.com/doc/current/book/installation.html for installation using Composer now
This gives me Fatal Error after a while:
monolog / monolog offers to install roll / shaft (allow sending log messages to Rollbar)Write Lock FileCreating startup filesFatal error: Call to undefined method Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::defineDirectoryStructure()in /Users/app/SymfonyStandard/RootPackageInstallSubscriber.phpon line 28
monolog / monolog offers to install roll / shaft (allow sending log messages to Rollbar)
Write Lock File
Creating startup files
Fatal error: Call to undefined method Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::defineDirectoryStructure()in /Users/app/SymfonyStandard/RootPackageInstallSubscriber.phpon line 28
Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::defineDirectoryStructure()
/Users/app/SymfonyStandard/RootPackageInstallSubscriber.php
@hap is absolutely right on Debian / Ubuntu
sudo apt-get install php5-curl
solves this problem. I think on another platform php5-curl will help too.
RESOLVED:
. composer.phar, curl -s https://getcomposer.org/installer | php -
composer.phar
curl -s https://getcomposer.org/installer | php
/path/to/webroot/project/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/ScriptHandler.php defineDirectoryStructure()
defineDirectoryStructure()
symfony/framework-standard-edition (v2.6.1)
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
sensio/distribution-bundle (v3.0.11)
@hap, sudo apt-get install php5-curl
Debian. , / (v3.0.12, defineDirectoryStructure) cURL PHP, , v3.0.11 ( ).
php5-curl Composer sensio/distribution-bundle, .
... debian, wamp Windows 7!
, wamp, PHP5.5, PHP, .
:
" create-project symfony/framework-standard-edition sfproject/"
, .... , , !! ... ;)
. composer.json "symfony/symfony": "2.3. *", .
, composer.phar composer.lock.
, symfony 2.3 โโ v 2.7.
vagrant VM, , - , 2.6.0 , .
, , 2.6x 2.5x , 2.3x 2.4x .
- , , , ..
composer create-project symfony/framework-standard-edition . 2.4.x
VM: Ubuntu 14.01/PHP 5.5.9
Ubuntu 14.04 VM, PuPHPet Vagrant/VirtualBox.
, , DistributionBundle . composer.json( 3.0.12, , , ), , , php5-curl.
PuPHPet, cURL PHP , Symfony , Sensio Distribution, defineDirectoryStructure().