diff --git a/src/di/src/Annotation/AspectCollector.php b/src/di/src/Annotation/AspectCollector.php index 53fdf2d03..0b829eb49 100644 --- a/src/di/src/Annotation/AspectCollector.php +++ b/src/di/src/Annotation/AspectCollector.php @@ -20,14 +20,6 @@ class AspectCollector extends MetadataCollector */ protected static $container = []; - public static function setBefore(string $aspect, array $classes, array $annotations) - { - $before = static::get('before'); - $before['classes'][$aspect] = array_replace($before['classes'][$aspect] ?? [], $classes); - $before['annotations'][$aspect] = array_replace($before['annotations'][$aspect] ?? [], $annotations); - static::set('before', $before); - } - public static function setArround(string $aspect, array $classes, array $annotations) { $arround = static::get('arround'); diff --git a/src/di/src/Annotation/MetadataHolder.php b/src/di/src/Annotation/MetadataHolder.php deleted file mode 100644 index 0e820c911..000000000 --- a/src/di/src/Annotation/MetadataHolder.php +++ /dev/null @@ -1,54 +0,0 @@ -container[$key] ?? $default; - } - - /** - * Set the metadata to holder. - */ - public function set(string $key, $value): void - { - $this->container[$key] = $value; - } - - /** - * Serialize the all metadata to a string. - */ - public function serialize(): string - { - return serialize($this->container); - } - - /** - * Deserialize the serialized metadata and set the metadata to holder. - */ - public function deserialize(string $metadata): bool - { - $data = unserialize($metadata); - $this->container = $data; - return true; - } -} diff --git a/src/di/src/Annotation/MetadataHolderInterface.php b/src/di/src/Annotation/MetadataHolderInterface.php deleted file mode 100644 index a9e48c63f..000000000 --- a/src/di/src/Annotation/MetadataHolderInterface.php +++ /dev/null @@ -1,35 +0,0 @@ -