Commit 68453e79 authored by Arnaud Bey's avatar Arnaud Bey

update symfony

parent 4f59e8ca
......@@ -9,26 +9,26 @@
"friendsofsymfony/jsrouting-bundle": "^2.3",
"sensio/framework-extra-bundle": "^5.1",
"symfony/apache-pack": "^1.0",
"symfony/asset": "4.3.*",
"symfony/console": "4.3.*",
"symfony/dotenv": "4.3.*",
"symfony/expression-language": "4.3.*",
"symfony/asset": "4.4.*",
"symfony/console": "4.4.*",
"symfony/dotenv": "4.4.*",
"symfony/expression-language": "4.4.*",
"symfony/flex": "^1.1",
"symfony/form": "4.3.*",
"symfony/framework-bundle": "4.3.*",
"symfony/form": "4.4.*",
"symfony/framework-bundle": "4.4.*",
"symfony/monolog-bundle": "^3.1",
"symfony/orm-pack": "*",
"symfony/process": "4.3.*",
"symfony/security-bundle": "4.3.*",
"symfony/serializer": "4.3.*",
"symfony/process": "4.4.*",
"symfony/security-bundle": "4.4.*",
"symfony/serializer": "4.4.*",
"symfony/serializer-pack": "*",
"symfony/swiftmailer-bundle": "^3.2",
"symfony/translation": "4.3.*",
"symfony/twig-bundle": "4.3.*",
"symfony/validator": "4.3.*",
"symfony/web-link": "4.3.*",
"symfony/translation": "4.4.*",
"symfony/twig-bundle": "4.4.*",
"symfony/validator": "4.4.*",
"symfony/web-link": "4.4.*",
"symfony/webpack-encore-bundle": "^1.1",
"symfony/yaml": "4.3.*",
"symfony/yaml": "4.4.*",
"twig/extensions": "^1.5"
},
"require-dev": {
......@@ -36,7 +36,7 @@
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*",
"symfony/web-server-bundle": "4.3.*"
"symfony/web-server-bundle": "4.4.*"
},
"config": {
"preferred-install": {
......@@ -80,7 +80,7 @@
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.3.*"
"require": "4.4.*"
}
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,7 +2,6 @@
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
......
......@@ -5,7 +5,7 @@ namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\ElanRepository")
* @ORM\Entity()
*/
class Elan
{
......
......@@ -5,7 +5,7 @@ namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\SquareRepository")
* @ORM\Entity()
*/
class Square
{
......
......@@ -6,7 +6,7 @@ use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\UserInterface;
/**
* @ORM\Entity(repositoryClass="App\Repository\UserRepository")
* @ORM\Entity()
*/
class User implements UserInterface
{
......
<?php
namespace App\Repository;
use App\Entity\Elan;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method Elan|null find($id, $lockMode = null, $lockVersion = null)
* @method Elan|null findOneBy(array $criteria, array $orderBy = null)
* @method Elan[] findAll()
* @method Elan[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class ElanRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
{
parent::__construct($registry, Elan::class);
}
// /**
// * @return Elan[] Returns an array of Elan objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('e')
->andWhere('e.exampleField = :val')
->setParameter('val', $value)
->orderBy('e.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?Elan
{
return $this->createQueryBuilder('e')
->andWhere('e.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}
<?php
namespace App\Repository;
use App\Entity\Square;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method Square|null find($id, $lockMode = null, $lockVersion = null)
* @method Square|null findOneBy(array $criteria, array $orderBy = null)
* @method Square[] findAll()
* @method Square[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class SquareRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
{
parent::__construct($registry, Square::class);
}
// /**
// * @return Square[] Returns an array of Square objects
// */
/*
public function findByExampleField($value)
{
return $this->createQueryBuilder('s')
->andWhere('s.exampleField = :val')
->setParameter('val', $value)
->orderBy('s.id', 'ASC')
->setMaxResults(10)
->getQuery()
->getResult()
;
}
*/
/*
public function findOneBySomeField($value): ?Square
{
return $this->createQueryBuilder('s')
->andWhere('s.exampleField = :val')
->setParameter('val', $value)
->getQuery()
->getOneOrNullResult()
;
}
*/
}
<?php
namespace App\Repository;
use App\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method User|null find($id, $lockMode = null, $lockVersion = null)
* @method User|null findOneBy(array $criteria, array $orderBy = null)
* @method User[] findAll()
* @method User[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class UserRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
{
parent::__construct($registry, User::class);
}
}
......@@ -29,9 +29,6 @@
"ref": "453e89b78ded666f351617baca5ae40d20622351"
}
},
"doctrine/doctrine-cache-bundle": {
"version": "1.3.5"
},
"doctrine/doctrine-migrations-bundle": {
"version": "1.2",
"recipe": {
......@@ -77,9 +74,6 @@
"egulias/email-validator": {
"version": "2.1.7"
},
"fig/link-util": {
"version": "1.0.0"
},
"friendsofsymfony/ckeditor-bundle": {
"version": "2.0",
"recipe": {
......@@ -113,6 +107,9 @@
"ocramius/proxy-manager": {
"version": "2.1.1"
},
"php": {
"version": "7.2"
},
"phpdocumentor/reflection-common": {
"version": "1.0.1"
},
......@@ -164,6 +161,9 @@
"symfony/cache": {
"version": "v4.2.3"
},
"symfony/cache-contracts": {
"version": "v2.0.1"
},
"symfony/config": {
"version": "v4.2.3"
},
......@@ -176,9 +176,6 @@
"ref": "0fa049c19069a65f52c1c181d64be3de672c1504"
}
},
"symfony/contracts": {
"version": "v1.0.2"
},
"symfony/css-selector": {
"version": "v4.2.3"
},
......@@ -209,9 +206,15 @@
"symfony/dotenv": {
"version": "v4.2.3"
},
"symfony/error-handler": {
"version": "v4.4.3"
},
"symfony/event-dispatcher": {
"version": "v4.2.3"
},
"symfony/event-dispatcher-contracts": {
"version": "v1.1.7"
},
"symfony/expression-language": {
"version": "v4.2.3"
},
......@@ -356,6 +359,9 @@
"symfony/serializer-pack": {
"version": "v1.0.2"
},
"symfony/service-contracts": {
"version": "v2.0.1"
},
"symfony/stopwatch": {
"version": "v4.2.3"
},
......@@ -380,6 +386,9 @@
"ref": "1fb02a6e1c8f3d4232cce485c9afa868d63b115a"
}
},
"symfony/translation-contracts": {
"version": "v2.0.1"
},
"symfony/twig-bridge": {
"version": "v4.2.3"
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment