Skip to content

Commit

Permalink
Upgrade to Doctrine/Persistence ^2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Warxcell committed Jan 22, 2021
1 parent ecdd5c7 commit 596979a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Form/Type/TranslationsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

use Arxy\EntityTranslationsBundle\Form\EventListener\ResizeFormListener;
use Arxy\EntityTranslationsBundle\Model\Language;
use Doctrine\Common\Persistence\ManagerRegistry;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class TranslationsType extends AbstractType
{

/**
* @var ManagerRegistry
*/
Expand Down
8 changes: 4 additions & 4 deletions Tests/Functional/Controller/NewsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
namespace Arxy\EntityTranslationsBundle\Tests\Functional\Controller;

use Arxy\EntityTranslationsBundle\Tests\Entity\News;
use Doctrine\Common\Persistence\AbstractManagerRegistry;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\HttpFoundation\Response;

class NewsController
{
/**
* @var AbstractManagerRegistry
* @var ManagerRegistry
*/
private $doctrine;

/**
* NewsController constructor.
* @param AbstractManagerRegistry $doctrine
* @param ManagerRegistry $doctrine
*/
public function __construct(AbstractManagerRegistry $doctrine)
public function __construct(ManagerRegistry $doctrine)
{
$this->doctrine = $doctrine;
}
Expand Down
8 changes: 4 additions & 4 deletions Tests/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ framework:
form: ~
default_locale: 'bg'
translator:
fallbacks: ['en', 'fi']
fallbacks: [ 'en', 'fi' ]
router:
resource: "%kernel.project_dir%/Tests/routing.yml"
strict_requirements: ~

doctrine:
dbal:
driver: pdo_sqlite
memory: true
charset: UTF8
driver: pdo_sqlite
memory: true
charset: UTF8
orm:
auto_generate_proxy_classes: "%kernel.debug%"
naming_strategy: doctrine.orm.naming_strategy.underscore
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"require-dev": {
"phpunit/phpunit": "^8.0 | ^9.0",
"symfony/symfony": "~4.4 | ~5.0",
"doctrine/persistence": "~2.0",
"doctrine/orm": "~2.5",
"doctrine/doctrine-bundle": "~1.8 | ~2.0"
},
Expand Down

0 comments on commit 596979a

Please sign in to comment.