8000 [3.0][Cookbook] Use the 3.0 directory structure by wouterj · Pull Request #5917 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[3.0][Cookbook] Use the 3.0 directory structure #5917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 30, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
app/bootstrap.php.cache -> var/bootstrap.php.cache
  • Loading branch information
wouterj committed Nov 28, 2015
commit af7052b63e7d562df3d990e2fb3165d3d3c04ff0
2 changes: 1 addition & 1 deletion cookbook/configuration/apache_router.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ to ``ApacheRequest`` in ``web/app.php``::

// web/app.php

require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../var/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
// require_once __DIR__.'/../app/AppCache.php';

Expand Down
3 changes: 1 addition & 2 deletions cookbook/configuration/override_dir_structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ in your ``app.php`` and ``app_dev.php`` front controllers. If you simply
renamed the directory, you're fine. But if you moved it in some way, you
may need to modify these paths inside those files::

require_once __DIR__.'/../Symfony/app/bootstrap.php.cache';
require_once __DIR__.'/../Symfony/app/AppKernel.php';
require_once __DIR__.'/../Symfony/var/bootstrap.php.cache';

You also need to change the ``extra.symfony-web-dir`` option in the ``composer.json``
file:
Expand Down
13 changes: 6 additions & 7 deletions cookbook/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,21 @@ The ``app_dev.php`` front controller reads as follows by default::

// ...

$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
require_once __DIR__.'/../app/AppKernel.php';
$loader = require __DIR__.'/../app/autoload.php';
Debug::enable();

$kernel = new AppKernel('dev', true);
$kernel->loadClassCache();
$request = Request::createFromGlobals();
// ...

To make your debugger happier, disable all PHP class caches by removing the
call to ``loadClassCache()`` and by replacing the require statements like
below::
To make your debugger happier, disable all PHP class caches by removing (or
commenting) the call to ``loadClassCache()``::

// ...

// $loader = require_once __DIR__.'/../app/bootstrap.php.cache';
$loader = require_once __DIR__.'/../app/autoload.php';
require_once __DIR__.'/../app/AppKernel.php';
Debug::enable();

$kernel = new AppKernel('dev', true);
// $kernel->loadClassCache();
Expand Down
4 changes: 2 additions & 2 deletions cookbook/workflow/new_project_svn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ with these steps:
$ svn add --depth=empty app var/cache var/logs app/config web

$ svn propset svn:ignore "vendor" .
$ svn propset svn:ignore "bootstrap*" app/
$ svn propset svn:ignore "bootstrap*" var/
$ svn propset svn:ignore "parameters.yml" app/config/
$ svn propset svn:ignore "*" var/cache/
$ svn propset svn:ignore "*" var/logs/

$ svn propset svn:ignore "bundles" web

$ svn ci -m "commit basic Symfony ignore list (vendor, app/bootstrap*, app/config/parameters.yml, var/cache/*, var/logs/*, web/bundles)"
$ svn ci -m "commit basic Symfony ignore list (vendor, var/bootstrap*, app/config/parameters.yml, var/cache/*, var/logs/*, web/bundles)"

#. The rest of the files can now be added and committed to the project:

Expand Down
0