InlineServiceConfigurator example


function service(string $serviceId): ReferenceConfigurator
{
    return new ReferenceConfigurator($serviceId);
}

/** * Creates an inline service. */
function inline_service(string $class = null): InlineServiceConfigurator
{
    return new InlineServiceConfigurator(new Definition($class));
}

/** * Creates a service locator. * * @param array<ReferenceConfigurator|InlineServiceConfigurator> $values */
function service_locator(array $values): ServiceLocatorArgument
{
    $values = AbstractConfigurator::processValue($values, true);

    

function service(string $serviceId): ReferenceConfigurator
{
    return new ReferenceConfigurator($serviceId);
}

/** * Creates an inline service. */
function inline_service(string $class = null): InlineServiceConfigurator
{
    return new InlineServiceConfigurator(new Definition($class));
}

/** * Creates a service locator. * * @param array<ReferenceConfigurator|InlineServiceConfigurator> $values */
function service_locator(array $values): ServiceLocatorArgument
{
    $values = AbstractConfigurator::processValue($values, true);

    
Home | Imprint | This part of the site doesn't use cookies.