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.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_HttpKernel
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class ResponseFilter

View File

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

View File

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

View File

@ -7,7 +7,7 @@ use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface;
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\CliController as DoctrineCliController;
use Doctrine\DBAL\Connection;

View File

@ -2,14 +2,14 @@
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\InputArgument;
use Symfony\Components\Console\Input\InputOption;
use Symfony\Components\Console\Input\InputInterface;
use Symfony\Components\Console\Output\OutputInterface;
use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Console\Application;
use Symfony\Framework\FoundationBundle\Console\Application;
use Symfony\Foundation\Bundle\Bundle;
use Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper;
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\Output\OutputInterface;
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\CliController as DoctrineCliController;
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\Output;
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\CliController as DoctrineCliController;
use Doctrine\ORM\EntityManager;

View File

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

View File

@ -2,7 +2,7 @@
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 Doctrine\DBAL\Migrations\Configuration\Configuration;
use Doctrine\Common\Util\Inflector;

View File

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

View File

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

View File

@ -1,6 +1,6 @@
<?php
namespace Symfony\Framework\WebBundle\Command;
namespace Symfony\Framework\FoundationBundle\Command;
use Symfony\Components\Console\Command\Command as BaseCommand;
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\Output\OutputInterface;
use Symfony\Components\Console\Output\Output;
use Symfony\Framework\WebBundle\Util\Filesystem;
use Symfony\Framework\WebBundle\Util\Mustache;
use Symfony\Framework\FoundationBundle\Util\Filesystem;
use Symfony\Framework\FoundationBundle\Util\Mustache;
/*
* This file is part of the symfony framework.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,8 +1,8 @@
<?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.
@ -17,13 +17,13 @@ use Symfony\Framework\WebBundle\Controller;
* DefaultController.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class DefaultController extends Controller
{
public function indexAction()
{
return $this->render('WebBundle:Default:index');
return $this->render('FoundationBundle:Default:index');
}
}

View File

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

View File

@ -1,8 +1,8 @@
<?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.
@ -17,7 +17,7 @@ use Symfony\Framework\WebBundle\Controller;
* InternalController.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class InternalController extends Controller

View File

@ -1,8 +1,8 @@
<?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.
@ -17,7 +17,7 @@ use Symfony\Framework\WebBundle\Controller;
*
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class RedirectController extends Controller

View File

@ -1,8 +1,8 @@
<?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.
@ -17,7 +17,7 @@ use Symfony\Framework\WebBundle\Controller;
* TemplateController.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class TemplateController extends Controller

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,10 +1,10 @@
<?php
namespace Symfony\Framework\WebBundle\Helper;
namespace Symfony\Framework\FoundationBundle\Helper;
use Symfony\Components\Templating\Helper\Helper;
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.
@ -19,7 +19,7 @@ use Symfony\Framework\WebBundle\Controller\ControllerManager;
* ActionsHelper.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
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 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())
{

View File

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

View File

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

View File

@ -1,9 +1,9 @@
<?php
namespace Symfony\Framework\WebBundle\Helper;
namespace Symfony\Framework\FoundationBundle\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.
@ -18,7 +18,7 @@ use Symfony\Framework\WebBundle\User;
* UserHelper.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class UserHelper extends Helper

View File

@ -1,8 +1,8 @@
<?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\EventDispatcher\EventDispatcher;
use Symfony\Components\EventDispatcher\Event;
@ -21,7 +21,7 @@ use Symfony\Components\EventDispatcher\Event;
* to execute based on the request parameters.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
class ControllerLoader

View File

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

View File

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

View File

@ -1,6 +1,6 @@
<?php
namespace Symfony\Framework\WebBundle;
namespace Symfony\Framework\FoundationBundle;
use Symfony\Components\DependencyInjection\ContainerInterface;
use Symfony\Components\HttpKernel\Profiler\Profiler as BaseProfiler;
@ -20,7 +20,7 @@ use Symfony\Components\HttpKernel\LoggerInterface;
* Profiler.
*
* @package Symfony
* @subpackage Framework_WebBundle
* @subpackage Framework_FoundationBundle
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
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">
<parameters>
<parameter key="templating.debugger.class">Symfony\Framework\WebBundle\Templating\Debugger</parameter>
<parameter key="templating.debugger.class">Symfony\Framework\FoundationBundle\Templating\Debugger</parameter>
</parameters>
<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">
<route id="_internal" pattern="/:controller/:path.:_format">
<default key="_controller">WebBundle:Internal:index</default>
<default key="_controller">FoundationBundle:Internal:index</default>
</route>
</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">
<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.file">%kernel.cache_dir%/profiler.db</parameter>
<parameter key="profiler.storage.lifetime">86400</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.app.class">Symfony\Framework\WebBundle\DataCollector\AppDataCollector</parameter>
<parameter key="data_collector.timer.class">Symfony\Framework\WebBundle\DataCollector\TimerDataCollector</parameter>
<parameter key="data_collector.config.class">Symfony\Framework\FoundationBundle\DataCollector\ConfigDataCollector</parameter>
<parameter key="data_collector.app.class">Symfony\Framework\FoundationBundle\DataCollector\AppDataCollector</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>
</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">
<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.cache.class">Symfony\Components\Templating\Loader\CacheLoader</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.slots.class">Symfony\Components\Templating\Helper\SlotsHelper</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.router.class">Symfony\Framework\WebBundle\Helper\RouterHelper</parameter>
<parameter key="templating.helper.request.class">Symfony\Framework\WebBundle\Helper\RequestHelper</parameter>
<parameter key="templating.helper.user.class">Symfony\Framework\WebBundle\Helper\UserHelper</parameter>
<parameter key="templating.helper.actions.class">Symfony\Framework\FoundationBundle\Helper\ActionsHelper</parameter>
<parameter key="templating.helper.router.class">Symfony\Framework\FoundationBundle\Helper\RouterHelper</parameter>
<parameter key="templating.helper.request.class">Symfony\Framework\FoundationBundle\Helper\RequestHelper</parameter>
<parameter key="templating.helper.user.class">Symfony\Framework\FoundationBundle\Helper\UserHelper</parameter>
<parameter key="templating.output_escaper">false</parameter>
<parameter key="templating.assets.version">null</parameter>
</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">
<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.session.class">Symfony\Framework\WebBundle\Session\NativeSession</parameter>
<parameter key="user.session.pdo.class">Symfony\Framework\WebBundle\Session\PdoSession</parameter>
<parameter key="user.session.class">Symfony\Framework\FoundationBundle\Session\NativeSession</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.auto_start">true</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">
<parameters>
<parameter key="request_parser.class">Symfony\Framework\WebBundle\Listener\RequestParser</parameter>
<parameter key="controller_manager.class">Symfony\Framework\WebBundle\Controller\ControllerManager</parameter>
<parameter key="controller_loader.class">Symfony\Framework\WebBundle\Listener\ControllerLoader</parameter>
<parameter key="request_parser.class">Symfony\Framework\FoundationBundle\Listener\RequestParser</parameter>
<parameter key="controller_manager.class">Symfony\Framework\FoundationBundle\Controller\ControllerManager</parameter>
<parameter key="controller_loader.class">Symfony\Framework\FoundationBundle\Listener\ControllerLoader</parameter>
<parameter key="router.class">Symfony\Components\Routing\Router</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.controller">WebBundle:Exception:exception</parameter>
<parameter key="exception_handler.class">Symfony\Framework\FoundationBundle\Listener\ExceptionHandler</parameter>
<parameter key="exception_handler.controller">FoundationBundle:Exception:exception</parameter>
<parameter key="esi.class">Symfony\Components\HttpKernel\Cache\Esi</parameter>
<parameter key="esi_filter.class">Symfony\Components\HttpKernel\Listener\EsiFilter</parameter>
</parameters>

View File

@ -6,6 +6,12 @@ use Symfony\Foundation\Kernel;
use Symfony\Components\DependencyInjection\Loader\XmlFileLoader as ContainerLoader;
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
{
public function registerRootDir()
@ -16,13 +22,13 @@ class {{ class }}Kernel extends Kernel
public function registerBundles()
{
$bundles = array(
new Symfony\Foundation\Bundle\KernelBundle(),
new Symfony\Framework\WebBundle\WebBundle(),
new KernelBundle(),
new FoundationBundle(),
// enable third-party bundles
new Symfony\Framework\ZendBundle\ZendBundle(),
new Symfony\Framework\DoctrineBundle\DoctrineBundle(),
new Symfony\Framework\SwiftmailerBundle\SwiftmailerBundle(),
new ZendBundle(),
new DoctrineBundle(),
new SwiftmailerBundle(),
// 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">
<route id="homepage" pattern="/">
<default key="_controller">WebBundle:Default:index</default>
<default key="_controller">FoundationBundle:Default:index</default>
</route>
</routes>

View File

@ -3,7 +3,7 @@
require_once __DIR__.'/{{ class }}Kernel.php';
use Symfony\Framework\WebBundle\Console\Application;
use Symfony\Framework\FoundationBundle\Console\Application;
$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\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
{
public function registerRootDir()
@ -16,13 +22,13 @@ class {{ class }}Kernel extends Kernel
public function registerBundles()
{
$bundles = array(
new Symfony\Foundation\Bundle\KernelBundle(),
new Symfony\Framework\WebBundle\WebBundle(),
new KernelBundle(),
new FoundationBundle(),
// enable third-party bundles
new Symfony\Framework\ZendBundle\ZendBundle(),
new Symfony\Framework\DoctrineBundle\DoctrineBundle(),
new Symfony\Framework\SwiftmailerBundle\SwiftmailerBundle(),
new ZendBundle(),
new DoctrineBundle(),
new SwiftmailerBundle(),
// 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';
use Symfony\Framework\WebBundle\Console\Application;
use Symfony\Framework\FoundationBundle\Console\Application;
$kernel = new {{ class }}Kernel('dev', true);

View File

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

View File

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

View File

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

View File

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

View File

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

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