N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)

* Update Symfony lib to version ~6.4.0
* Update code missing return type
* Add an iTop general configuration entry to store application secret (Symfony mandatory parameter)
* Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
bdalsass
2023-12-05 13:56:56 +01:00
committed by GitHub
parent 863ab4560c
commit 27ce51ab07
1392 changed files with 44869 additions and 27799 deletions

View File

@@ -22,7 +22,7 @@ class ImportConfigurator
use Traits\PrefixTrait;
use Traits\RouteTrait;
private $parent;
private RouteCollection $parent;
public function __construct(RouteCollection $parent, RouteCollection $route)
{
@@ -30,14 +30,14 @@ class ImportConfigurator
$this->route = $route;
}
/**
* @return array
*/
public function __sleep()
public function __sleep(): array
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
}
/**
* @return void
*/
public function __wakeup()
{
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
@@ -55,7 +55,7 @@ class ImportConfigurator
*
* @return $this
*/
final public function prefix($prefix, bool $trailingSlashOnRoot = true): self
final public function prefix(string|array $prefix, bool $trailingSlashOnRoot = true): static
{
$this->addPrefix($this->route, $prefix, $trailingSlashOnRoot);
@@ -67,7 +67,7 @@ class ImportConfigurator
*
* @return $this
*/
final public function namePrefix(string $namePrefix): self
final public function namePrefix(string $namePrefix): static
{
$this->route->addNamePrefix($namePrefix);
@@ -81,7 +81,7 @@ class ImportConfigurator
*
* @return $this
*/
final public function host($host): self
final public function host(string|array $host): static
{
$this->addHost($this->route, $host);