10000 Autobinding to controllers failed · Issue #28077 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Autobinding to controllers failed #28077
Closed
@MathieuMindid

Description

@MathieuMindid

Symfony version(s) affected: 4.1.2

Description
Since i update from 4.1.1 to 4.1.2, default binding from controllers failed :

Controller "App\Controller\Admin\KitController::edit()" requires that you provide a value for the "$customDir" argument. Either the argument is nullable and no null value has been provided, no default value has been provided or because there is a non optional argument after this one.

custom_dir is defined in env, i try to rollback to 4.1.1 and it works.

How to reproduce
service.yml

services:
    # default configuration for services in *this* file
    _defaults:
        bind:
            $customDir: '%custom_dir%'

Controller :

public function edit($customDir) {
// ... 
}

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

      0