Skip to content

PSR4 support #182

@marcofranssen

Description

@marcofranssen

I just installed PHP-DI via composer.

Somehow my config is failing on these lines since it can't resolve the files using autoloading.

DI\object("MyNamespace\\Myclass")

PHP Fatal error: Class 'DI\object' not found

in the vendor/composer/autoload_files.php file I see the functions file is registered. However I think this file is only used for PSR-0 which makes PHP-DI kind of unusable for projects requiring PSR-4.

Is there any workarround available to make it work? When will a fix be released?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions