You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} while ($adapterinstanceof DefinitionDecorator && !$adapter->hasTag('cache.adapter'));
41
-
42
-
if (!$adapter->hasTag('cache.adapter')) {
43
-
thrownew \InvalidArgumentException(sprintf('Services tagged with "cache.pool" must have a parent service tagged with "cache.adapter" but "%s" has none.', $id));
45
+
if ($pool->isAbstract()) {
46
+
continue;
44
47
}
45
-
46
-
$tags = $adapter->getTag('cache.adapter');
47
-
48
-
if (!isset($tags[0]['namespace_arg_index'])) {
49
-
thrownew \InvalidArgumentException(sprintf('Invalid "cache.adapter" tag for service "%s": attribute "namespace_arg_index" is missing.', $adapterId));
48
+
if (isset($tags[0]['provider_service']) && is_string($tags[0]['provider_service'])) {
thrownew \InvalidArgumentException(sprintf('Invalid "cache.pool" tag for service "%s": accepted attributes are "provider_service", "namespace", "default_lifetime" and "directory", found "%s".', $id, implode('", "', array_keys($tags[0]))));
0 commit comments