for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace GacelaTest\Feature\Framework\ExtendService\Module;
use ArrayObject;
use Gacela\Framework\AbstractDependencyProvider;
use Gacela\Framework\Container\Container;
final class DependencyProvider extends AbstractDependencyProvider
{
public const ARRAY_AS_OBJECT = 'SERVICE_FUNCTION_ARRAY';
public const ARRAY_FROM_FUNCTION = 'ARRAY_FROM_FUNCTION';
public function provideModuleDependencies(Container $container): void
$container->set(self::ARRAY_FROM_FUNCTION, new ArrayObject([1, 2]));
$container->set(self::ARRAY_AS_OBJECT, static fn () => new ArrayObject([1, 2]));
}