Skip to content

fixed some namespaces to match with the latest sandbox #12

New issue

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

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

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions guides/bundles/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ When creating an extension, follow these simple conventions:

If you follow these simple conventions, you extensions will be registered
automatically by Symfony. If not, override the Bundle
:method:`Symfony\\Framework\\Bundle\\Bundle::registerExtensions` method::
:method:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle::registerExtensions` method::

class HelloBundle extends Bundle
{
Expand All @@ -262,7 +262,7 @@ Default Configuration
As stated before, the user of the bundle should include the ``hello.config``
namespace in a configuration file for your extension code to be called. But
you can automatically register a default configuration by overriding the
Bundle :method:`Symfony\\Framework\\Bundle\\Bundle::registerExtensions`
Bundle :method:`Symfony\\Component\\HttpKernel\\Bundle\\Bundle::registerExtensions`
method::

class HelloBundle extends Bundle
Expand Down
2 changes: 1 addition & 1 deletion guides/emails.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Enable ``SwiftmailerBundle`` in your kernel::
{
$bundles = array(
// ...
new Symfony\Framework\SwiftmailerBundle\Bundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
);

// ...
Expand Down
2 changes: 1 addition & 1 deletion guides/internals/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on top of the previous one.
.. tip::
Autoloading is not managed by the framework directly; it's done
independently with the help of the
:class:`Symfony\\Framework\\UniversalClassLoader` class and the
:class:`Symfony\\Component\\HttpFoundation\\UniversalClassLoader` class and the
``src/autoload.php`` file. Read the :doc:`dedicated chapter
</guides/tools/autoloader>` for more information.

Expand Down
2 changes: 1 addition & 1 deletion guides/templating/Twig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Enable the ``TwigBundle`` in your kernel::
{
$bundles = array(
// ...
new Symfony\Framework\TwigBundle\Bundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
);

// ...
Expand Down
14 changes: 7 additions & 7 deletions guides/tools/autoloader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ need.
Usage
-----

Registering the :class:`Symfony\\Framework\\UniversalClassLoader` autoloader
Registering the :class:`Symfony\\Component\\HttpFoundation\\UniversalClassLoader` autoloader
is straightforward::

require_once '/path/to/src/Symfony/Framework/UniversalClassLoader.php';
require_once '/path/to/src/Symfony/Component/HttpFoundation/UniversalClassLoader.php';

use Symfony\Framework\UniversalClassLoader;
use Symfony\Component\HttpFoundation\UniversalClassLoader;

$loader = new UniversalClassLoader();
$loader->register();
Expand All @@ -38,8 +38,8 @@ The autoloader is useful only if you add some libraries to autoload.
``src/autoload.php``).

If the classes to autoload use namespaces, use the
:method:`Symfony\\Framework\\UniversalClassLoader::registerNamespace` or
:method:`Symfony\\Framework\\UniversalClassLoader::registerNamespaces`
:method:`Symfony\\Component\\HttpFoundation\\UniversalClassLoader::registerNamespace` or
:method:`Symfony\\Component\\HttpFoundation\\UniversalClassLoader::registerNamespaces`
methods::

$loader->registerNamespace('Symfony', __DIR__.'/vendor/symfony/src');
Expand All @@ -50,8 +50,8 @@ methods::
));

For classes that follow the PEAR naming convention, use the
:method:`Symfony\\Framework\\UniversalClassLoader::registerPrefix` or
:method:`Symfony\\Framework\\UniversalClassLoader::registerPrefixes`
:method:`Symfony\\Component\\HttpFoundation\\UniversalClassLoader::registerPrefix` or
:method:`Symfony\\Component\\HttpFoundation\\UniversalClassLoader::registerPrefixes`
methods::

$loader->registerPrefix('Twig_', __DIR__.'/vendor/twig/lib');
Expand Down