Update to symfony 7+

This commit is contained in:
Tim 2024-07-05 23:08:05 +02:00
parent 35228c8496
commit 306414e24b
3 changed files with 11 additions and 20 deletions

View File

@ -5,8 +5,8 @@
"require": {
"php": "^8.1",
"doctrine/orm": "^2.0",
"symfony/form": "^5.0|^6.0",
"symfony/twig-bundle": "^5.0|^6.0"
"symfony/form": "^5.0|^6.0|^7.0",
"symfony/twig-bundle": "^5.0|^6.0|^7.0"
},
"autoload": {
"psr-4": {

View File

@ -7,7 +7,7 @@ namespace Ardent\ParameterBundle\Controller;
use Ardent\ParameterBundle\Service\ParameterService;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Routing\Attribute\Route;
class ParameterController extends BaseController
{

View File

@ -2,32 +2,23 @@
namespace Ardent\ParameterBundle\Entity;
use Doctrine\DBAL\Types\TextType;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\NumberType;
/**
* @ORM\Entity
* @ORM\Table(name="parameter_bundle_parameters")
*/
#[ORM\Entity()]
#[ORM\Table(name: 'parameter_bundle_parameters')]
class Parameter
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
* @ORM\Column(type="integer")
*/
private ?int $id;
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
/**
* @ORM\Column(type="string")
*/
#[ORM\Column]
private ?string $name;
/**
* @ORM\Column(type="string")
*/
#[ORM\Column(type: 'string')]
private mixed $value;
public function getId(): int