Alias

Alias

class Alias

Methods

__construct(string $id, bool $public = true)
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

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

Parameters

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