We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a04c4c commit c83ae6dCopy full SHA for c83ae6d
Authorization/ExpressionLanguage.php
@@ -29,8 +29,12 @@ class_exists(ExpressionLanguageProvider::class);
29
*/
30
class ExpressionLanguage extends BaseExpressionLanguage
31
{
32
- public function __construct(?CacheItemPoolInterface $cache = null, array $providers = [])
+ public function __construct(?CacheItemPoolInterface $cache = null, iterable $providers = [])
33
34
+ if (!\is_array($providers)) {
35
+ $providers = iterator_to_array($providers, false);
36
+ }
37
+
38
// prepend the default provider to let users override it easily
39
array_unshift($providers, new ExpressionLanguageProvider());
40
0 commit comments