renamed WebBundle to FoundationBundle as the bundle is not just about the web

This commit is contained in:
Fabien Potencier 2010-06-24 07:49:27 +02:00
parent 785da59eb5
commit 99a63fe1a6
114 changed files with 178 additions and 166 deletions

View File

@ -20,7 +20,7 @@ use Symfony\Components\HttpKernel\HttpKernelInterface;
* ResponseFilter. * ResponseFilter.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_HttpKernel
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ResponseFilter class ResponseFilter

View File

@ -63,10 +63,10 @@ class KernelExtension extends LoaderExtension
'Symfony\\Components\\Templating\\Renderer\\PhpRenderer', 'Symfony\\Components\\Templating\\Renderer\\PhpRenderer',
'Symfony\\Components\\Templating\\Storage\\Storage', 'Symfony\\Components\\Templating\\Storage\\Storage',
'Symfony\\Components\\Templating\\Storage\\FileStorage', 'Symfony\\Components\\Templating\\Storage\\FileStorage',
'Symfony\\Framework\\WebBundle\\Controller', 'Symfony\\Framework\\FoundationBundle\\Controller',
'Symfony\\Framework\\WebBundle\\Listener\\RequestParser', 'Symfony\\Framework\\FoundationBundle\\Listener\\RequestParser',
'Symfony\\Framework\\WebBundle\\Listener\\ControllerLoader', 'Symfony\\Framework\\FoundationBundle\\Listener\\ControllerLoader',
'Symfony\\Framework\\WebBundle\\Templating\\Engine', 'Symfony\\Framework\\FoundationBundle\\Templating\\Engine',
); );
} else { } else {
$classes = array(); $classes = array();

View File

@ -221,10 +221,10 @@ class KernelExtension extends LoaderExtension
'Symfony\\Components\\Templating\\Renderer\\PhpRenderer', 'Symfony\\Components\\Templating\\Renderer\\PhpRenderer',
'Symfony\\Components\\Templating\\Storage\\Storage', 'Symfony\\Components\\Templating\\Storage\\Storage',
'Symfony\\Components\\Templating\\Storage\\FileStorage', 'Symfony\\Components\\Templating\\Storage\\FileStorage',
'Symfony\\Framework\\WebBundle\\Controller', 'Symfony\\Framework\\FoundationBundle\\Controller',
'Symfony\\Framework\\WebBundle\\Listener\\RequestParser', 'Symfony\\Framework\\FoundationBundle\\Listener\\RequestParser',
'Symfony\\Framework\\WebBundle\\Listener\\ControllerLoader', 'Symfony\\Framework\\FoundationBundle\\Listener\\ControllerLoader',
'Symfony\\Framework\\WebBundle\\Templating\\Engine', 'Symfony\\Framework\\FoundationBundle\\Templating\\Engine',
); );
} else { } else {
$classes = array(); $classes = array();

View File

@ -7,7 +7,7 @@ use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Util\Filesystem; use Symfony\Framework\FoundationBundle\Util\Filesystem;
use Doctrine\Common\Cli\Configuration; use Doctrine\Common\Cli\Configuration;
use Doctrine\Common\Cli\CliController as DoctrineCliController; use Doctrine\Common\Cli\CliController as DoctrineCliController;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;

View File

@ -2,14 +2,14 @@
namespace Symfony\Framework\DoctrineBundle\Command; namespace Symfony\Framework\DoctrineBundle\Command;
use Symfony\Framework\WebBundle\Command\Command; use Symfony\Framework\FoundationBundle\Command\Command;
use Symfony\Components\Console\Input\ArrayInput; use Symfony\Components\Console\Input\ArrayInput;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Console\Application; use Symfony\Framework\FoundationBundle\Console\Application;
use Symfony\Foundation\Bundle\Bundle; use Symfony\Foundation\Bundle\Bundle;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper; use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper; use Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper;

View File

@ -7,7 +7,7 @@ use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Util\Filesystem; use Symfony\Framework\FoundationBundle\Util\Filesystem;
use Doctrine\Common\Cli\Configuration; use Doctrine\Common\Cli\Configuration;
use Doctrine\Common\Cli\CliController as DoctrineCliController; use Doctrine\Common\Cli\CliController as DoctrineCliController;
use Doctrine\DBAL\Connection; use Doctrine\DBAL\Connection;

View File

@ -8,7 +8,7 @@ use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Components\Finder\Finder; use Symfony\Components\Finder\Finder;
use Symfony\Framework\WebBundle\Util\Filesystem; use Symfony\Framework\FoundationBundle\Util\Filesystem;
use Doctrine\Common\Cli\Configuration; use Doctrine\Common\Cli\Configuration;
use Doctrine\Common\Cli\CliController as DoctrineCliController; use Doctrine\Common\Cli\CliController as DoctrineCliController;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManager;

View File

@ -2,7 +2,7 @@
namespace Symfony\Framework\DoctrineBundle\Controller; namespace Symfony\Framework\DoctrineBundle\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.

View File

@ -2,7 +2,7 @@
namespace Symfony\Framework\DoctrineMigrationsBundle\Command; namespace Symfony\Framework\DoctrineMigrationsBundle\Command;
use Symfony\Framework\WebBundle\Console\Application; use Symfony\Framework\FoundationBundle\Console\Application;
use Symfony\Framework\DoctrineBundle\Command\DoctrineCommand as BaseCommand; use Symfony\Framework\DoctrineBundle\Command\DoctrineCommand as BaseCommand;
use Doctrine\DBAL\Migrations\Configuration\Configuration; use Doctrine\DBAL\Migrations\Configuration\Configuration;
use Doctrine\Common\Util\Inflector; use Doctrine\Common\Util\Inflector;

View File

@ -1,13 +1,13 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Command; namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Util\Filesystem; use Symfony\Framework\FoundationBundle\Util\Filesystem;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -22,7 +22,7 @@ use Symfony\Framework\WebBundle\Util\Filesystem;
* AssetsInstallCommand. * AssetsInstallCommand.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class AssetsInstallCommand extends Command class AssetsInstallCommand extends Command

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Command; namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
@ -22,7 +22,7 @@ use Symfony\Components\Console\Command\Command as BaseCommand;
* Command. * Command.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
abstract class Command extends BaseCommand abstract class Command extends BaseCommand

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Command; namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Command\Command as BaseCommand; use Symfony\Components\Console\Command\Command as BaseCommand;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
@ -8,8 +8,8 @@ use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Util\Filesystem; use Symfony\Framework\FoundationBundle\Util\Filesystem;
use Symfony\Framework\WebBundle\Util\Mustache; use Symfony\Framework\FoundationBundle\Util\Mustache;
/* /*
* This file is part of the symfony framework. * This file is part of the symfony framework.

View File

@ -1,14 +1,14 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Command; namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output; use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Util\Filesystem; use Symfony\Framework\FoundationBundle\Util\Filesystem;
use Symfony\Framework\WebBundle\Util\Mustache; use Symfony\Framework\FoundationBundle\Util\Mustache;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -23,7 +23,7 @@ use Symfony\Framework\WebBundle\Util\Mustache;
* Initializes a new bundle. * Initializes a new bundle.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class InitBundleCommand extends Command class InitBundleCommand extends Command

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Command; namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
@ -22,7 +22,7 @@ use Symfony\Components\Routing\Matcher\Dumper\ApacheMatcherDumper;
* RouterApacheDumperCommand. * RouterApacheDumperCommand.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class RouterApacheDumperCommand extends Command class RouterApacheDumperCommand extends Command

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Command; namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Input\InputArgument; use Symfony\Components\Console\Input\InputArgument;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
@ -22,7 +22,7 @@ use Symfony\Components\Routing\Matcher\Dumper\ApacheMatcherDumper;
* RouterDebugCommand. * RouterDebugCommand.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class RouterDebugCommand extends Command class RouterDebugCommand extends Command

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Console; namespace Symfony\Framework\FoundationBundle\Console;
use Symfony\Components\Console\Application as BaseApplication; use Symfony\Components\Console\Application as BaseApplication;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
@ -21,7 +21,7 @@ use Symfony\Foundation\Kernel;
* Application. * Application.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class Application extends BaseApplication class Application extends BaseApplication

View File

@ -1,13 +1,13 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Console; namespace Symfony\Framework\FoundationBundle\Console;
use Symfony\Components\Console\Application as BaseApplication; use Symfony\Components\Console\Application as BaseApplication;
use Symfony\Components\Console\Input\InputInterface; use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Input\InputOption; use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Output\OutputInterface; use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Foundation\Kernel; use Symfony\Foundation\Kernel;
use Symfony\Framework\WebBundle\Command\InitApplicationCommand; use Symfony\Framework\FoundationBundle\Command\InitApplicationCommand;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -22,7 +22,7 @@ use Symfony\Framework\WebBundle\Command\InitApplicationCommand;
* BootstrapApplication. * BootstrapApplication.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class BootstrapApplication extends BaseApplication class BootstrapApplication extends BaseApplication

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Console; namespace Symfony\Framework\FoundationBundle\Console;
use Symfony\Components\Console\Shell as BaseShell; use Symfony\Components\Console\Shell as BaseShell;
@ -17,7 +17,7 @@ use Symfony\Components\Console\Shell as BaseShell;
* Shell. * Shell.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class Shell extends BaseShell class Shell extends BaseShell

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle; namespace Symfony\Framework\FoundationBundle;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\HttpKernel\Request; use Symfony\Components\HttpKernel\Request;
@ -17,10 +17,10 @@ use Symfony\Components\HttpKernel\HttpKernelInterface;
*/ */
/** /**
* WebBundle Controller gives you convenient access to all commonly needed services. * FoundationBundle Controller gives you convenient access to all commonly needed services.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class Controller class Controller

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Controller; namespace Symfony\Framework\FoundationBundle\Controller;
use Symfony\Components\HttpKernel\LoggerInterface; use Symfony\Components\HttpKernel\LoggerInterface;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
@ -20,7 +20,7 @@ use Symfony\Components\HttpKernel\Request;
* ControllerManager. * ControllerManager.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ControllerManager class ControllerManager

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Controller; namespace Symfony\Framework\FoundationBundle\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -17,13 +17,13 @@ use Symfony\Framework\WebBundle\Controller;
* DefaultController. * DefaultController.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class DefaultController extends Controller class DefaultController extends Controller
{ {
public function indexAction() public function indexAction()
{ {
return $this->render('WebBundle:Default:index'); return $this->render('FoundationBundle:Default:index');
} }
} }

View File

@ -1,9 +1,9 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Controller; namespace Symfony\Framework\FoundationBundle\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
use Symfony\Framework\WebBundle\Debug\ExceptionFormatter; use Symfony\Framework\FoundationBundle\Debug\ExceptionFormatter;
use Symfony\Components\HttpKernel\Request; use Symfony\Components\HttpKernel\Request;
use Symfony\Components\HttpKernel\Response; use Symfony\Components\HttpKernel\Response;
use Symfony\Components\HttpKernel\Exception\HttpException; use Symfony\Components\HttpKernel\Exception\HttpException;
@ -21,7 +21,7 @@ use Symfony\Components\HttpKernel\Exception\HttpException;
* ExceptionController. * ExceptionController.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ExceptionController extends Controller class ExceptionController extends Controller
@ -42,7 +42,7 @@ class ExceptionController extends Controller
} }
$template = $this->container->getTemplatingService()->getLoader()->load($template, array( $template = $this->container->getTemplatingService()->getLoader()->load($template, array(
'bundle' => 'WebBundle', 'bundle' => 'FoundationBundle',
'controller' => 'Exception', 'controller' => 'Exception',
'format' => '.'.$format, 'format' => '.'.$format,
)); ));

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Controller; namespace Symfony\Framework\FoundationBundle\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -17,7 +17,7 @@ use Symfony\Framework\WebBundle\Controller;
* InternalController. * InternalController.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class InternalController extends Controller class InternalController extends Controller

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Controller; namespace Symfony\Framework\FoundationBundle\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -17,7 +17,7 @@ use Symfony\Framework\WebBundle\Controller;
* *
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class RedirectController extends Controller class RedirectController extends Controller

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Controller; namespace Symfony\Framework\FoundationBundle\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -17,7 +17,7 @@ use Symfony\Framework\WebBundle\Controller;
* TemplateController. * TemplateController.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class TemplateController extends Controller class TemplateController extends Controller

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\DataCollector; namespace Symfony\Framework\FoundationBundle\DataCollector;
use Symfony\Components\HttpKernel\Profiler\DataCollector\DataCollector; use Symfony\Components\HttpKernel\Profiler\DataCollector\DataCollector;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
@ -18,7 +18,7 @@ use Symfony\Components\DependencyInjection\ContainerInterface;
* AppDataCollector. * AppDataCollector.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class AppDataCollector extends DataCollector class AppDataCollector extends DataCollector

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\DataCollector; namespace Symfony\Framework\FoundationBundle\DataCollector;
use Symfony\Foundation\Kernel; use Symfony\Foundation\Kernel;
use Symfony\Components\HttpKernel\Profiler\DataCollector\DataCollector; use Symfony\Components\HttpKernel\Profiler\DataCollector\DataCollector;
@ -19,7 +19,7 @@ use Symfony\Components\DependencyInjection\ContainerInterface;
* ConfigDataCollector. * ConfigDataCollector.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ConfigDataCollector extends DataCollector class ConfigDataCollector extends DataCollector

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\DataCollector; namespace Symfony\Framework\FoundationBundle\DataCollector;
use Symfony\Components\HttpKernel\Profiler\DataCollector\DataCollector; use Symfony\Components\HttpKernel\Profiler\DataCollector\DataCollector;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
@ -18,7 +18,7 @@ use Symfony\Components\DependencyInjection\ContainerInterface;
* TimerDataCollector. * TimerDataCollector.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class TimerDataCollector extends DataCollector class TimerDataCollector extends DataCollector

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Debug; namespace Symfony\Framework\FoundationBundle\Debug;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
@ -17,7 +17,7 @@ use Symfony\Components\DependencyInjection\ContainerInterface;
* ExceptionFormatter. * ExceptionFormatter.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ExceptionFormatter class ExceptionFormatter

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\DependencyInjection; namespace Symfony\Framework\FoundationBundle\DependencyInjection;
use Symfony\Components\DependencyInjection\Loader\LoaderExtension; use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader; use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
@ -20,7 +20,7 @@ use Symfony\Components\DependencyInjection\Reference;
* WebExtension. * WebExtension.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class WebExtension extends LoaderExtension class WebExtension extends LoaderExtension
@ -112,7 +112,7 @@ class WebExtension extends LoaderExtension
if (isset($config['session']['class'])) { if (isset($config['session']['class'])) {
$class = $config['session']['class']; $class = $config['session']['class'];
if (in_array($class, array('Native', 'Pdo'))) { if (in_array($class, array('Native', 'Pdo'))) {
$class = 'Symfony\\Framework\\WebBundle\\Session\\'.$class.'Session'; $class = 'Symfony\\Framework\\FoundationBundle\\Session\\'.$class.'Session';
} }
$configuration->setParameter('user.session', 'user.session.'.strtolower($class)); $configuration->setParameter('user.session', 'user.session.'.strtolower($class));

View File

@ -1,13 +1,13 @@
<?php <?php
namespace Symfony\Framework\WebBundle; namespace Symfony\Framework\FoundationBundle;
use Symfony\Foundation\Bundle\Bundle; use Symfony\Foundation\Bundle\Bundle;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\DependencyInjection\Loader\Loader; use Symfony\Components\DependencyInjection\Loader\Loader;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader; use Symfony\Components\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Components\DependencyInjection\BuilderConfiguration; use Symfony\Components\DependencyInjection\BuilderConfiguration;
use Symfony\Framework\WebBundle\DependencyInjection\WebExtension; use Symfony\Framework\FoundationBundle\DependencyInjection\WebExtension;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -22,10 +22,10 @@ use Symfony\Framework\WebBundle\DependencyInjection\WebExtension;
* Bundle. * Bundle.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class WebBundle extends Bundle class FoundationBundle extends Bundle
{ {
/** /**
* Customizes the Container instance. * Customizes the Container instance.

View File

@ -1,10 +1,10 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Helper; namespace Symfony\Framework\FoundationBundle\Helper;
use Symfony\Components\Templating\Helper\Helper; use Symfony\Components\Templating\Helper\Helper;
use Symfony\Components\OutputEscaper\Escaper; use Symfony\Components\OutputEscaper\Escaper;
use Symfony\Framework\WebBundle\Controller\ControllerManager; use Symfony\Framework\FoundationBundle\Controller\ControllerManager;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -19,7 +19,7 @@ use Symfony\Framework\WebBundle\Controller\ControllerManager;
* ActionsHelper. * ActionsHelper.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ActionsHelper extends Helper class ActionsHelper extends Helper
@ -55,7 +55,7 @@ class ActionsHelper extends Helper
* @param string $controller A controller name to execute (a string like BlogBundle:Post:index), or a relative URI * @param string $controller A controller name to execute (a string like BlogBundle:Post:index), or a relative URI
* @param array $options An array of options * @param array $options An array of options
* *
* @see Symfony\Framework\WebBundle\Controller\ControllerManager::render() * @see Symfony\Framework\FoundationBundle\Controller\ControllerManager::render()
*/ */
public function render($controller, array $options = array()) public function render($controller, array $options = array())
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Helper; namespace Symfony\Framework\FoundationBundle\Helper;
use Symfony\Components\Templating\Helper\Helper; use Symfony\Components\Templating\Helper\Helper;
use Symfony\Components\HttpKernel\Request; use Symfony\Components\HttpKernel\Request;
@ -18,7 +18,7 @@ use Symfony\Components\HttpKernel\Request;
* RequestHelper. * RequestHelper.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class RequestHelper extends Helper class RequestHelper extends Helper

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Helper; namespace Symfony\Framework\FoundationBundle\Helper;
use Symfony\Components\Templating\Helper\Helper; use Symfony\Components\Templating\Helper\Helper;
use Symfony\Components\Routing\Router; use Symfony\Components\Routing\Router;
@ -18,7 +18,7 @@ use Symfony\Components\Routing\Router;
* RouterHelper. * RouterHelper.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class RouterHelper extends Helper class RouterHelper extends Helper

View File

@ -1,9 +1,9 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Helper; namespace Symfony\Framework\FoundationBundle\Helper;
use Symfony\Components\Templating\Helper\Helper; use Symfony\Components\Templating\Helper\Helper;
use Symfony\Framework\WebBundle\User; use Symfony\Framework\FoundationBundle\User;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -18,7 +18,7 @@ use Symfony\Framework\WebBundle\User;
* UserHelper. * UserHelper.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class UserHelper extends Helper class UserHelper extends Helper

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Listener; namespace Symfony\Framework\FoundationBundle\Listener;
use Symfony\Framework\WebBundle\Controller\ControllerManager; use Symfony\Framework\FoundationBundle\Controller\ControllerManager;
use Symfony\Components\HttpKernel\LoggerInterface; use Symfony\Components\HttpKernel\LoggerInterface;
use Symfony\Components\EventDispatcher\EventDispatcher; use Symfony\Components\EventDispatcher\EventDispatcher;
use Symfony\Components\EventDispatcher\Event; use Symfony\Components\EventDispatcher\Event;
@ -21,7 +21,7 @@ use Symfony\Components\EventDispatcher\Event;
* to execute based on the request parameters. * to execute based on the request parameters.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ControllerLoader class ControllerLoader

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Listener; namespace Symfony\Framework\FoundationBundle\Listener;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\EventDispatcher\EventDispatcher; use Symfony\Components\EventDispatcher\EventDispatcher;
@ -21,7 +21,7 @@ use Symfony\Components\HttpKernel\HttpKernelInterface;
* ExceptionHandler. * ExceptionHandler.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class ExceptionHandler class ExceptionHandler

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Listener; namespace Symfony\Framework\FoundationBundle\Listener;
use Symfony\Components\HttpKernel\LoggerInterface; use Symfony\Components\HttpKernel\LoggerInterface;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
@ -22,7 +22,7 @@ use Symfony\Components\HttpKernel\HttpKernelInterface;
* RequestParser. * RequestParser.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class RequestParser class RequestParser

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle; namespace Symfony\Framework\FoundationBundle;
use Symfony\Components\DependencyInjection\ContainerInterface; use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\HttpKernel\Profiler\Profiler as BaseProfiler; use Symfony\Components\HttpKernel\Profiler\Profiler as BaseProfiler;
@ -20,7 +20,7 @@ use Symfony\Components\HttpKernel\LoggerInterface;
* Profiler. * Profiler.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class Profiler extends BaseProfiler class Profiler extends BaseProfiler

View File

@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters> <parameters>
<parameter key="templating.debugger.class">Symfony\Framework\WebBundle\Templating\Debugger</parameter> <parameter key="templating.debugger.class">Symfony\Framework\FoundationBundle\Templating\Debugger</parameter>
</parameters> </parameters>
<services> <services>

View File

@ -5,6 +5,6 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/routing http://www.symfony-project.org/schema/routing/routing-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/routing http://www.symfony-project.org/schema/routing/routing-1.0.xsd">
<route id="_internal" pattern="/:controller/:path.:_format"> <route id="_internal" pattern="/:controller/:path.:_format">
<default key="_controller">WebBundle:Internal:index</default> <default key="_controller">FoundationBundle:Internal:index</default>
</route> </route>
</routes> </routes>

View File

@ -5,14 +5,14 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters> <parameters>
<parameter key="profiler.class">Symfony\Framework\WebBundle\Profiler</parameter> <parameter key="profiler.class">Symfony\Framework\FoundationBundle\Profiler</parameter>
<parameter key="profiler.storage.class">Symfony\Components\HttpKernel\Profiler\ProfilerStorage</parameter> <parameter key="profiler.storage.class">Symfony\Components\HttpKernel\Profiler\ProfilerStorage</parameter>
<parameter key="profiler.storage.file">%kernel.cache_dir%/profiler.db</parameter> <parameter key="profiler.storage.file">%kernel.cache_dir%/profiler.db</parameter>
<parameter key="profiler.storage.lifetime">86400</parameter> <parameter key="profiler.storage.lifetime">86400</parameter>
<parameter key="profiling.class">Symfony\Components\HttpKernel\Listener\Profiling</parameter> <parameter key="profiling.class">Symfony\Components\HttpKernel\Listener\Profiling</parameter>
<parameter key="data_collector.config.class">Symfony\Framework\WebBundle\DataCollector\ConfigDataCollector</parameter> <parameter key="data_collector.config.class">Symfony\Framework\FoundationBundle\DataCollector\ConfigDataCollector</parameter>
<parameter key="data_collector.app.class">Symfony\Framework\WebBundle\DataCollector\AppDataCollector</parameter> <parameter key="data_collector.app.class">Symfony\Framework\FoundationBundle\DataCollector\AppDataCollector</parameter>
<parameter key="data_collector.timer.class">Symfony\Framework\WebBundle\DataCollector\TimerDataCollector</parameter> <parameter key="data_collector.timer.class">Symfony\Framework\FoundationBundle\DataCollector\TimerDataCollector</parameter>
<parameter key="data_collector.memory.class">Symfony\Components\HttpKernel\Profiler\DataCollector\MemoryDataCollector</parameter> <parameter key="data_collector.memory.class">Symfony\Components\HttpKernel\Profiler\DataCollector\MemoryDataCollector</parameter>
</parameters> </parameters>

View File

@ -5,7 +5,7 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters> <parameters>
<parameter key="templating.engine.class">Symfony\Framework\WebBundle\Templating\Engine</parameter> <parameter key="templating.engine.class">Symfony\Framework\FoundationBundle\Templating\Engine</parameter>
<parameter key="templating.loader.filesystem.class">Symfony\Components\Templating\Loader\FilesystemLoader</parameter> <parameter key="templating.loader.filesystem.class">Symfony\Components\Templating\Loader\FilesystemLoader</parameter>
<parameter key="templating.loader.cache.class">Symfony\Components\Templating\Loader\CacheLoader</parameter> <parameter key="templating.loader.cache.class">Symfony\Components\Templating\Loader\CacheLoader</parameter>
<parameter key="templating.loader.chain.class">Symfony\Components\Templating\Loader\ChainLoader</parameter> <parameter key="templating.loader.chain.class">Symfony\Components\Templating\Loader\ChainLoader</parameter>
@ -13,10 +13,10 @@
<parameter key="templating.helper.stylesheets.class">Symfony\Components\Templating\Helper\StylesheetsHelper</parameter> <parameter key="templating.helper.stylesheets.class">Symfony\Components\Templating\Helper\StylesheetsHelper</parameter>
<parameter key="templating.helper.slots.class">Symfony\Components\Templating\Helper\SlotsHelper</parameter> <parameter key="templating.helper.slots.class">Symfony\Components\Templating\Helper\SlotsHelper</parameter>
<parameter key="templating.helper.assets.class">Symfony\Components\Templating\Helper\AssetsHelper</parameter> <parameter key="templating.helper.assets.class">Symfony\Components\Templating\Helper\AssetsHelper</parameter>
<parameter key="templating.helper.actions.class">Symfony\Framework\WebBundle\Helper\ActionsHelper</parameter> <parameter key="templating.helper.actions.class">Symfony\Framework\FoundationBundle\Helper\ActionsHelper</parameter>
<parameter key="templating.helper.router.class">Symfony\Framework\WebBundle\Helper\RouterHelper</parameter> <parameter key="templating.helper.router.class">Symfony\Framework\FoundationBundle\Helper\RouterHelper</parameter>
<parameter key="templating.helper.request.class">Symfony\Framework\WebBundle\Helper\RequestHelper</parameter> <parameter key="templating.helper.request.class">Symfony\Framework\FoundationBundle\Helper\RequestHelper</parameter>
<parameter key="templating.helper.user.class">Symfony\Framework\WebBundle\Helper\UserHelper</parameter> <parameter key="templating.helper.user.class">Symfony\Framework\FoundationBundle\Helper\UserHelper</parameter>
<parameter key="templating.output_escaper">false</parameter> <parameter key="templating.output_escaper">false</parameter>
<parameter key="templating.assets.version">null</parameter> <parameter key="templating.assets.version">null</parameter>
</parameters> </parameters>

View File

@ -5,10 +5,10 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters> <parameters>
<parameter key="user.class">Symfony\Framework\WebBundle\User</parameter> <parameter key="user.class">Symfony\Framework\FoundationBundle\User</parameter>
<parameter key="user.default_locale">en</parameter> <parameter key="user.default_locale">en</parameter>
<parameter key="user.session.class">Symfony\Framework\WebBundle\Session\NativeSession</parameter> <parameter key="user.session.class">Symfony\Framework\FoundationBundle\Session\NativeSession</parameter>
<parameter key="user.session.pdo.class">Symfony\Framework\WebBundle\Session\PdoSession</parameter> <parameter key="user.session.pdo.class">Symfony\Framework\FoundationBundle\Session\PdoSession</parameter>
<parameter key="session.options.name">SYMFONY_SESSION</parameter> <parameter key="session.options.name">SYMFONY_SESSION</parameter>
<parameter key="session.options.auto_start">true</parameter> <parameter key="session.options.auto_start">true</parameter>
<parameter key="session.options.lifetime">false</parameter> <parameter key="session.options.lifetime">false</parameter>

View File

@ -5,13 +5,13 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/dic/services http://www.symfony-project.org/schema/dic/services/services-1.0.xsd">
<parameters> <parameters>
<parameter key="request_parser.class">Symfony\Framework\WebBundle\Listener\RequestParser</parameter> <parameter key="request_parser.class">Symfony\Framework\FoundationBundle\Listener\RequestParser</parameter>
<parameter key="controller_manager.class">Symfony\Framework\WebBundle\Controller\ControllerManager</parameter> <parameter key="controller_manager.class">Symfony\Framework\FoundationBundle\Controller\ControllerManager</parameter>
<parameter key="controller_loader.class">Symfony\Framework\WebBundle\Listener\ControllerLoader</parameter> <parameter key="controller_loader.class">Symfony\Framework\FoundationBundle\Listener\ControllerLoader</parameter>
<parameter key="router.class">Symfony\Components\Routing\Router</parameter> <parameter key="router.class">Symfony\Components\Routing\Router</parameter>
<parameter key="response_filter.class">Symfony\Components\HttpKernel\Listener\ResponseFilter</parameter> <parameter key="response_filter.class">Symfony\Components\HttpKernel\Listener\ResponseFilter</parameter>
<parameter key="exception_handler.class">Symfony\Framework\WebBundle\Listener\ExceptionHandler</parameter> <parameter key="exception_handler.class">Symfony\Framework\FoundationBundle\Listener\ExceptionHandler</parameter>
<parameter key="exception_handler.controller">WebBundle:Exception:exception</parameter> <parameter key="exception_handler.controller">FoundationBundle:Exception:exception</parameter>
<parameter key="esi.class">Symfony\Components\HttpKernel\Cache\Esi</parameter> <parameter key="esi.class">Symfony\Components\HttpKernel\Cache\Esi</parameter>
<parameter key="esi_filter.class">Symfony\Components\HttpKernel\Listener\EsiFilter</parameter> <parameter key="esi_filter.class">Symfony\Components\HttpKernel\Listener\EsiFilter</parameter>
</parameters> </parameters>

View File

@ -6,6 +6,12 @@ use Symfony\Foundation\Kernel;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader as ContainerLoader; use Symfony\Components\DependencyInjection\Loader\XmlFileLoader as ContainerLoader;
use Symfony\Components\Routing\Loader\XmlFileLoader as RoutingLoader; use Symfony\Components\Routing\Loader\XmlFileLoader as RoutingLoader;
use Symfony\Foundation\Bundle\KernelBundle;
use Symfony\Framework\FoundationBundle\FoundationBundle;
use Symfony\Framework\ZendBundle\ZendBundle;
use Symfony\Framework\DoctrineBundle\DoctrineBundle;
use Symfony\Framework\SwiftmailerBundle\SwiftmailerBundle;
class {{ class }}Kernel extends Kernel class {{ class }}Kernel extends Kernel
{ {
public function registerRootDir() public function registerRootDir()
@ -16,13 +22,13 @@ class {{ class }}Kernel extends Kernel
public function registerBundles() public function registerBundles()
{ {
$bundles = array( $bundles = array(
new Symfony\Foundation\Bundle\KernelBundle(), new KernelBundle(),
new Symfony\Framework\WebBundle\WebBundle(), new FoundationBundle(),
// enable third-party bundles // enable third-party bundles
new Symfony\Framework\ZendBundle\ZendBundle(), new ZendBundle(),
new Symfony\Framework\DoctrineBundle\DoctrineBundle(), new DoctrineBundle(),
new Symfony\Framework\SwiftmailerBundle\SwiftmailerBundle(), new SwiftmailerBundle(),
// register your bundles here // register your bundles here
); );

View File

@ -5,6 +5,6 @@
xsi:schemaLocation="http://www.symfony-project.org/schema/routing http://www.symfony-project.org/schema/routing/routing-1.0.xsd"> xsi:schemaLocation="http://www.symfony-project.org/schema/routing http://www.symfony-project.org/schema/routing/routing-1.0.xsd">
<route id="homepage" pattern="/"> <route id="homepage" pattern="/">
<default key="_controller">WebBundle:Default:index</default> <default key="_controller">FoundationBundle:Default:index</default>
</route> </route>
</routes> </routes>

View File

@ -3,7 +3,7 @@
require_once __DIR__.'/{{ class }}Kernel.php'; require_once __DIR__.'/{{ class }}Kernel.php';
use Symfony\Framework\WebBundle\Console\Application; use Symfony\Framework\FoundationBundle\Console\Application;
$kernel = new {{ class }}Kernel('dev', true); $kernel = new {{ class }}Kernel('dev', true);

View File

@ -6,6 +6,12 @@ use Symfony\Foundation\Kernel;
use Symfony\Components\DependencyInjection\Loader\YamlFileLoader as ContainerLoader; use Symfony\Components\DependencyInjection\Loader\YamlFileLoader as ContainerLoader;
use Symfony\Components\Routing\Loader\YamlFileLoader as RoutingLoader; use Symfony\Components\Routing\Loader\YamlFileLoader as RoutingLoader;
use Symfony\Foundation\Bundle\KernelBundle;
use Symfony\Framework\FoundationBundle\FoundationBundle;
use Symfony\Framework\ZendBundle\ZendBundle;
use Symfony\Framework\DoctrineBundle\DoctrineBundle;
use Symfony\Framework\SwiftmailerBundle\SwiftmailerBundle;
class {{ class }}Kernel extends Kernel class {{ class }}Kernel extends Kernel
{ {
public function registerRootDir() public function registerRootDir()
@ -16,13 +22,13 @@ class {{ class }}Kernel extends Kernel
public function registerBundles() public function registerBundles()
{ {
$bundles = array( $bundles = array(
new Symfony\Foundation\Bundle\KernelBundle(), new KernelBundle(),
new Symfony\Framework\WebBundle\WebBundle(), new FoundationBundle(),
// enable third-party bundles // enable third-party bundles
new Symfony\Framework\ZendBundle\ZendBundle(), new ZendBundle(),
new Symfony\Framework\DoctrineBundle\DoctrineBundle(), new DoctrineBundle(),
new Symfony\Framework\SwiftmailerBundle\SwiftmailerBundle(), new SwiftmailerBundle(),
// register your bundles here // register your bundles here
); );

View File

@ -0,0 +1,3 @@
homepage:
pattern: /
defaults: { _controller: FoundationBundle:Default:index }

View File

@ -3,7 +3,7 @@
require_once __DIR__.'/{{ class }}Kernel.php'; require_once __DIR__.'/{{ class }}Kernel.php';
use Symfony\Framework\WebBundle\Console\Application; use Symfony\Framework\FoundationBundle\Console\Application;
$kernel = new {{ class }}Kernel('dev', true); $kernel = new {{ class }}Kernel('dev', true);

View File

@ -2,7 +2,7 @@
namespace {{ namespace }}\{{ bundle }}\Controller; namespace {{ namespace }}\{{ bundle }}\Controller;
use Symfony\Framework\WebBundle\Controller; use Symfony\Framework\FoundationBundle\Controller;
class DefaultController extends Controller class DefaultController extends Controller
{ {

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Session; namespace Symfony\Framework\FoundationBundle\Session;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -15,7 +15,7 @@ namespace Symfony\Framework\WebBundle\Session;
* NativeSession. * NativeSession.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class NativeSession implements SessionInterface class NativeSession implements SessionInterface

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Session; namespace Symfony\Framework\FoundationBundle\Session;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -15,7 +15,7 @@ namespace Symfony\Framework\WebBundle\Session;
* PdoSession. * PdoSession.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class PdoSession extends NativeSession class PdoSession extends NativeSession

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Session; namespace Symfony\Framework\FoundationBundle\Session;
/* /*
* This file is part of the Symfony framework. * This file is part of the Symfony framework.
@ -15,7 +15,7 @@ namespace Symfony\Framework\WebBundle\Session;
* SessionInterface. * SessionInterface.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
interface SessionInterface interface SessionInterface

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Symfony\Framework\WebBundle\Templating; namespace Symfony\Framework\FoundationBundle\Templating;
use Symfony\Components\Templating\DebuggerInterface; use Symfony\Components\Templating\DebuggerInterface;
use Symfony\Components\HttpKernel\LoggerInterface; use Symfony\Components\HttpKernel\LoggerInterface;
@ -18,7 +18,7 @@ use Symfony\Components\HttpKernel\LoggerInterface;
* Binds the Symfony templating loader debugger to the Symfony logger. * Binds the Symfony templating loader debugger to the Symfony logger.
* *
* @package Symfony * @package Symfony
* @subpackage Framework_WebBundle * @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com> * @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/ */
class Debugger implements DebuggerInterface class Debugger implements DebuggerInterface

Some files were not shown because too many files have changed in this diff Show More