Skip to content

Commit

Permalink
fix(bc): declare routing AttributeClassLoader if not exists (sf < 6.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Dec 11, 2023
1 parent 54f2e1b commit faa900c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions compat/routing_class_loader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

namespace Symfony\Component\Routing\Loader {
if (!class_exists(AttributeClassLoader::class)) {
abstract class AttributeClassLoader extends AnnotationClassLoader {
public function __construct(string $env = null)
{
parent::__construct(null, $env);
}
}
}
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"Solido\\Symfony\\": "src/"
},
"files": [
"compat/argument_value_resolver_interfaces.php"
"compat/argument_value_resolver_interfaces.php",
"compat/routing_class_loader.php"
]
},
"autoload-dev": {
Expand Down

0 comments on commit faa900c

Please sign in to comment.