Skip to content

Commit 954159b

Browse files
committed
[Routing] remove deprecations
1 parent 076ae4c commit 954159b

File tree

12 files changed

+26
-1170
lines changed

12 files changed

+26
-1170
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
CHANGELOG
22
=========
33

4+
5.0.0
5+
-----
6+
7+
* removed `PhpGeneratorDumper` and `PhpMatcherDumper`
8+
* removed `generator_base_class`, `generator_cache_class`, `matcher_base_class` and `matcher_cache_class` router options
9+
* `Serializable` implementing methods for `Route` and `CompiledRoute` are final
10+
* removed referencing service route loaders with a single colon
11+
412
4.3.0
513
-----
614

CompiledRoute.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,9 @@ public function __serialize(): array
6464
}
6565

6666
/**
67-
* @internal since Symfony 4.3
68-
* @final since Symfony 4.3
67+
* @internal
6968
*/
70-
public function serialize()
69+
final public function serialize()
7170
{
7271
return serialize($this->__serialize());
7372
}
@@ -85,10 +84,9 @@ public function __unserialize(array $data): void
8584
}
8685

8786
/**
88-
* @internal since Symfony 4.3
89-
* @final since Symfony 4.3
87+
* @internal
9088
*/
91-
public function unserialize($serialized)
89+
final public function unserialize($serialized)
9290
{
9391
$this->__unserialize(unserialize($serialized, ['allowed_classes' => false]));
9492
}

Generator/Dumper/PhpGeneratorDumper.php

Lines changed: 0 additions & 140 deletions
This file was deleted.

Loader/ObjectRouteLoader.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ public function load($resource, $type = null)
4848
throw new \InvalidArgumentException(sprintf('Invalid resource "%s" passed to the "service" route loader: use the format "service::method" or "service" if your service has an "__invoke" method.', $resource));
4949
}
5050

51-
if (1 === substr_count($resource, ':')) {
52-
$resource = str_replace(':', '::', $resource);
53-
@trigger_error(sprintf('Referencing service route loaders with a single colon is deprecated since Symfony 4.1. Use %s instead.', $resource), E_USER_DEPRECATED);
54-
}
55-
5651
$parts = explode('::', $resource);
5752
$serviceString = $parts[0];
5853
$method = $parts[1] ?? '__invoke';

Matcher/Dumper/PhpMatcherDumper.php

Lines changed: 0 additions & 75 deletions
This file was deleted.

Route.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ public function __serialize(): array
7878
}
7979

8080
/**
81-
* @internal since Symfony 4.3
82-
* @final since Symfony 4.3
81+
* @internal
8382
*/
84-
public function serialize()
83+
final public function serialize()
8584
{
8685
return serialize($this->__serialize());
8786
}
@@ -105,10 +104,9 @@ public function __unserialize(array $data): void
105104
}
106105

107106
/**
108-
* @internal since Symfony 4.3
109-
* @final since Symfony 4.3
107+
* @internal
110108
*/
111-
public function unserialize($serialized)
109+
final public function unserialize($serialized)
112110
{
113111
$this->__unserialize(unserialize($serialized));
114112
}

0 commit comments

Comments
 (0)