Skip to content

I followed the doc of 4.2. MicroKernelTrait throws error #10858

Closed
@featuriz

Description

@featuriz

I'm following a doc of symonfy 4.2 MicroKernelTrait
Dated: Jan 10 2019 08:45 AM India ISD.
This causing 2 error.

(1/2) ArgumentCountError

Too few arguments to function Symfony\Component\HttpKernel\Kernel::__construct(), 0 passed in /home/sudhakar/SudhakarK/NB/2019/FZFW/vendor/symfony/http-kernel/Controller/ControllerResolver.php on line 133 and exactly 2 expected

(2/2) InvalidArgumentException

Controller "Kernel" has required constructor arguments and does not exist in the container. Did you forget to define such a service?

How to reproduce:
I followd the turorial of the mentioned page with 4.2 symfony version.

The error is when running http://localhost:8000/random/10
But http://localhost:8000/ works

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: Needs ReviewbughasPRA Pull Request has already been submitted for this issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions