Update to symfony 7+
This commit is contained in:
parent
35228c8496
commit
306414e24b
@ -5,8 +5,8 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1",
|
||||||
"doctrine/orm": "^2.0",
|
"doctrine/orm": "^2.0",
|
||||||
"symfony/form": "^5.0|^6.0",
|
"symfony/form": "^5.0|^6.0|^7.0",
|
||||||
"symfony/twig-bundle": "^5.0|^6.0"
|
"symfony/twig-bundle": "^5.0|^6.0|^7.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@ -7,7 +7,7 @@ namespace Ardent\ParameterBundle\Controller;
|
|||||||
use Ardent\ParameterBundle\Service\ParameterService;
|
use Ardent\ParameterBundle\Service\ParameterService;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
use Symfony\Component\Routing\Attribute\Route;
|
||||||
|
|
||||||
class ParameterController extends BaseController
|
class ParameterController extends BaseController
|
||||||
{
|
{
|
||||||
|
@ -2,32 +2,23 @@
|
|||||||
|
|
||||||
namespace Ardent\ParameterBundle\Entity;
|
namespace Ardent\ParameterBundle\Entity;
|
||||||
|
|
||||||
use Doctrine\DBAL\Types\TextType;
|
|
||||||
use Doctrine\ORM\Mapping as ORM;
|
use Doctrine\ORM\Mapping as ORM;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||||
|
|
||||||
/**
|
#[ORM\Entity()]
|
||||||
* @ORM\Entity
|
#[ORM\Table(name: 'parameter_bundle_parameters')]
|
||||||
* @ORM\Table(name="parameter_bundle_parameters")
|
|
||||||
*/
|
|
||||||
class Parameter
|
class Parameter
|
||||||
{
|
{
|
||||||
/**
|
#[ORM\Id]
|
||||||
* @ORM\Id
|
#[ORM\GeneratedValue]
|
||||||
* @ORM\GeneratedValue(strategy="AUTO")
|
#[ORM\Column]
|
||||||
* @ORM\Column(type="integer")
|
private ?int $id = null;
|
||||||
*/
|
|
||||||
private ?int $id;
|
|
||||||
|
|
||||||
/**
|
#[ORM\Column]
|
||||||
* @ORM\Column(type="string")
|
|
||||||
*/
|
|
||||||
private ?string $name;
|
private ?string $name;
|
||||||
|
|
||||||
/**
|
#[ORM\Column(type: 'string')]
|
||||||
* @ORM\Column(type="string")
|
|
||||||
*/
|
|
||||||
private mixed $value;
|
private mixed $value;
|
||||||
|
|
||||||
public function getId(): int
|
public function getId(): int
|
||||||
|
Loading…
Reference in New Issue
Block a user