W3cubDocs

/Symfony 3.0

Symfony\Component\DependencyInjection\Alias

class Alias

Methods

__construct(string $id, bool $public = true)

Constructor.

bool isPublic()

Checks if this DI Alias should be public or not.

setPublic(bool $boolean)

Sets if this Alias is public.

string __toString()

Returns the Id of this alias.

Details

public __construct(string $id, bool $public = true)

Constructor.

Parameters

string $id Alias identifier
bool $public If this alias is public

public bool isPublic()

Checks if this DI Alias should be public or not.

Return Value

bool

public setPublic(bool $boolean)

Sets if this Alias is public.

Parameters

bool $boolean If this Alias should be public

public string __toString()

Returns the Id of this alias.

Return Value

string The alias id

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/DependencyInjection/Alias.html