The class Gacela\Framework\AbstractDependencyProvider has been deprecated: in favor of AbstractProvider. This class will be removed in version 2.0
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
15
final class DependencyProvider extends /** @scrutinizer ignore-deprecated */ AbstractDependencyProvider
Loading history...
16
{
17
public const ARRAY_AS_OBJECT = 'ARRAY_AS_OBJECT';
18
19
public const ARRAY_FROM_FUNCTION = 'ARRAY_FROM_FUNCTION';
20
21
public function provideModuleDependencies(Container $container): void
22
{
23
$container->set(self::ARRAY_AS_OBJECT, new ArrayObject([1, 2]));
24
25
$container->set(self::ARRAY_FROM_FUNCTION, static fn (): ArrayObject => new ArrayObject([1, 2]));