Skip to content

Fixed broken use statements #14432

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

Merged
merged 1 commit into from
Oct 17, 2020
Merged
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
2 changes: 1 addition & 1 deletion migration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ could look something like this::
// public/index.php
use App\Kernel;
use App\LegacyBridge;
use Symfony\Component\Debug\Debug;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;

require dirname(__DIR__).'/vendor/autoload.php';
Expand Down
4 changes: 2 additions & 2 deletions reference/constraints/Traverse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ that all have constraints on their properties.
// src/Entity/BookCollection.php
namespace App\Entity;

use Doctrine\Collections\ArrayCollection;
use Doctrine\Collections\Collection
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;

Expand Down
2 changes: 1 addition & 1 deletion routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ session shouldn't be used when matching a request:

// config/routes.php
use App\Controller\MainController;
use Symfony\Bundle\FrameworkBundle\Routing\Loader\Configurator\RoutingConfigurator;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;

return function (RoutingConfigurator $routes) {
$routes->add('homepage', '/')
Expand Down
4 changes: 2 additions & 2 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ parts of your application and mocking it in your tests.

Instead of translating a string at the time of creation, you can use a
"translatable object", which is an instance of the
:class:`Symfony\\Component\\Translation\\TranslatableMessage` class. This object stores
:class:`Symfony\\Component\\Translation\\Translatable` class. This object stores
all the information needed to fully translate its contents when needed::

use Symfony\Component\Translation\TranslatableMessage;
use Symfony\Component\Translation\Translatable;

// the first argument is required and it's the original message
$message = new TranslatableMessage('Symfony is great!');
Expand Down