Skip to content

UrlGenerator not registered in Rampage injector after RuntimeRoutesMapper refactor #121

@jcdelepine

Description

@jcdelepine

Since 4735b62, OAuth login is broken in Rampage.

The injector can't resolve UrlGenerator because $webroot is a scalar parameter with no binding in DefaultInjectorBindings. The binding used to live in Horde_Application::_bootstrap() which is never called in the Rampage flow.

Horde\Injector\Exception: Parameter $webroot (string) cannot be resolved in DependencyFinder.php:140
...
Horde\Injector\NotFoundException: Cannot create Horde\Horde\Service\UrlGenerator
  Dependency chain: Horde\Horde\Auth\OAuthLoginController → Horde\Horde\Service\UrlGenerator

I have a local workaround cloning that _bootstrap() behaviour, but I don't think it's the right approach given the new RoutesCompiler infrastructure.

Metadata

Metadata

Assignees

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