composer php - How can I use the new directory structure with Symfony >=2.7? -


before symfony 2.7 setting environment variable sensiolabs_enable_new_directory_structure trigger prompt would use symfony 3 directory structure?

starting 2.7 (released yesterday) doesn't work anymore:

composer create-project symfony/framework-standard-edition symfony "2.7.*" 

any idea why?

i've found use-new-directory-structure shell arg in composer script handler, how use it? pointless @zerkms answer.

using 2.6.*:

enter image description here

using 2.7.*:

enter image description here

it's bug , after research sent pull request.

the nature of bug following:

in symfony/symfony-standard@6272b33 replaced psr-0 composer autoload psr-4 haven't fixed path symfonystandard directory correspondingly.

this causes the

"post-root-package-install": [     "symfonystandard\\composer::hookrootpackageinstall" ], 

composer script not run successfully, since symfonystandard\\composer cannot resolved.

what call adds handler post-root-package-install event in turn sets couple more event handlers post-install event.

one of handlers 1 scripthandler::definedirectorystructure not invoked @ because of bug.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -