ReferenceConfigurator example


function param(string $name): ParamConfigurator
{
    return new ParamConfigurator($name);
}

/** * Creates a reference to a service. */
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 param(string $name): ParamConfigurator
{
    return new ParamConfigurator($name);
}

/** * Creates a reference to a service. */
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 */
Home | Imprint | This part of the site doesn't use cookies.