02.
Upgrading to the Symfony 3.0 Directory Structure
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
8 Comments
this was an awesome article! thanks for writing it!
After following your instructions i can start the application but if i want to run the /app_dev.php dev mode,i get an error:
FatalErrorException in AppKernel.php line 0:
Compile Error: Cannot declare class AppKernel, because the name is already in use
I followered your instructions to the changes of the AppKernel and app_dev php files.
Whats confusing, a new bootstrap.php.cache file will be created inside the /app folder instead of the var /var folder.
So i guess there is something wrong with the ScriptHandler::buildBootstrap part
In the official Symfony 2.7 documentation the Incenteev yaml loader is used. This is not part of your description.
Do i need to adjust it too? Does it even matter? It is used for building a parameters.yaml out of a parameters.yaml.dist.
Why does my buildBootrap Scripthandler creates a bootstrap.php.cache file still in my /app folder, if i configured it to var, and why does the app_dev.php thinks there is an duplicate clss issue?
Running without app_dev.php works fine.
@Edit:
I found the Error myself. I still had one require_once __DIR__.'/../app/AppKernel.php'; left which i overlooked.
With autoload.php in both app.php and app_dev.php it works just fine :)
Hi,
I follow the tutorial doing line by line all.
But at video 7min 19 sec
just after to set directory (app,web,var, bin and tests) in "extra" (in composer.json)
I run the command "composer install" and error appears:
/application$ composer install
[...]
Could not open input file: app/console
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the post-install-cmd event terminated with an exception
In ScriptHandler.php line 220:
An error occurred when executing the "'cache:clear --no-warmup'" command.
[...]
it seems it try to look at app/console and not at /bin/console
Now? what can I look for?
If I’m updgrading to Symfony 2.8 only, do I need to upgrade the directory structure?
Kudos Mahabaniri!
Thanks for this article! Great help.
"Houston: no signs of life"
Start the conversation!