Hi,
While debugging Symfony2 I find it a bit irritating that my backtraces and step
by step debugging end up in bootstrap.php class definitions. Therefore I think
we should encourage users to setup their app_dev.php like so:
diff --git a/web/app_dev.php b/web/app_dev.php
index 7fb6182..49c0e65 100644
--- a/web/app_dev.php
+++ b/web/app_dev.php
@@ -6,7 +6,8 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1',
'::1'))) {
die('You are not allowed to access this file. Check '.basename(__FILE__).'
for more information.');
}
-require_once __DIR__.'/../app/bootstrap.php';
+require_once
__DIR__.'/../vendor/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
+require_once __DIR__.'/../app/autoload.php';
require_once __DIR__.'/../app/AppKernel.php';
use Symfony\Component\HttpFoundation\Request;
Then again one might want to add some stuff to app/bootstrap.php. So I wonder
if we shouldn't handle generating the bootstrap.php in Symfony via the cache
warmer and make it env dependent somehow. Like for dev it would just have a
require to the UniversalLoader. Then again I guess its a bit problematic to try
and create the bootstrap via a CLI command that needs the bootstrap to already
be in place.
Gruss,
Lukas
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en