Skip to content

Commit 61b2b1a

Browse files
committed
Made all namespaces Acme\UserBundle to be consistent throughout document instead of some having Acme\UserBundle and some Acme\Bundle\UserBundle
1 parent b32ecce commit 61b2b1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cookbook/security/entity_provider.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ For this example, the first three methods will return ``true`` whereas the
265265
.. code-block:: php
266266
267267
// src/Acme/UserBundle/Entity/User.php
268-
namespace Acme\Bundle\UserBundle\Entity;
268+
namespace Acme\UserBundle\Entity;
269269
270270
// ...
271271
use Symfony\Component\Security\Core\User\AdvancedUserInterface;
@@ -417,7 +417,7 @@ more users. As a group is also a role, the previous ``getRoles()`` method now
417417
returns the list of related groups::
418418

419419
// src/Acme/UserBundle/Entity/User.php
420-
namespace Acme\Bundle\UserBundle\Entity;
420+
namespace Acme\UserBundle\Entity;
421421

422422
use Doctrine\Common\Collections\ArrayCollection;
423423
// ...
@@ -451,7 +451,7 @@ implements the :class:`Symfony\\Component\\Security\\Core\\Role\\RoleInterface`
451451
that forces it to have a ``getRole()`` method::
452452

453453
// src/Acme/Bundle/UserBundle/Entity/Group.php
454-
namespace Acme\Bundle\UserBundle\Entity;
454+
namespace Acme\UserBundle\Entity;
455455

456456
use Symfony\Component\Security\Core\Role\RoleInterface;
457457
use Doctrine\Common\Collections\ArrayCollection;
@@ -507,7 +507,7 @@ relationship in the ``UserRepository::loadUserByUsername()`` method. This will
507507
fetch the user and his associated roles / groups with a single query::
508508

509509
// src/Acme/UserBundle/Entity/UserRepository.php
510-
namespace Acme\Bundle\UserBundle\Entity;
510+
namespace Acme\UserBundle\Entity;
511511

512512
// ...
513513

0 commit comments

Comments
 (0)