This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
OriginalRouteExtractor Serialization of 'Closure' is not allowed #332
Open
Description
When trying to use OriginalRouteExtractor
there is exception " Serialization of 'Closure' is not allowed " because of router service having a closure
public function serialize() { return serialize([ $this->extractors, $this->resource, $this->createdAt, ]); }
-configCacheFactory: ResourceCheckerConfigCacheFactory {#365 ▼ -resourceCheckers: RewindableGenerator {#363 ▼ -generator: Closure {#364 ▼ class: "appDevDebugProjectContainer" this: appDevDebugProjectContainer {#519 …14} file: "/var/cache/dev/appDevDebugProjectContainer.php" line: "2038 to 2041" } -count: 2 }