I use symfony2. In AppKernel.php, I writed like this:
class AppKernel extends Kernel {
public function __construct ($environment, $debug) {
parent::__construct($environment, $debug);
echo "ok";
}
}
in the page, it shows "ok" once in prod environment, but shows twice in dev environment. it seems the AppKernel is instantiated twice? I don't know why. Any ideas?