Skip to content

Aliases #18

Description

@djones8520

I'm updating to php 8.1 and am trying to update auryn with this package. It looks like the readme of this package is a copy and hasn't been updated yet. I've been able to create an object, but I'm not seeing a way to configure aliases. Has that been implemented yet and if so, how do I set aliases?

Here is what I have so far without aliases.

use Amp\Injector\Application;
use Amp\Injector\Injector;
use function Amp\Injector\automaticTypes;
use function Amp\Injector\definitions;
use function Amp\Injector\object;

$definitions = definitions();
$injector = new Injector(automaticTypes($definitions);
$application = new Application($injector, $definitions);

$object = $application->invoke(object("ClassName"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions