Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facade has not been register #4

Open
didix16 opened this issue Nov 10, 2020 · 0 comments
Open

facade has not been register #4

didix16 opened this issue Nov 10, 2020 · 0 comments

Comments

@didix16
Copy link

didix16 commented Nov 10, 2020

Hi,
I'm new in using Facades into Symfony and I'm having troubles make then work...

I've been followed the steps in the documentation but when I'm trying to use the Facade this error arise:

RuntimeException: "App\Facades\Container" facade has not been register. in vendor/indragunawan/facade-bundle/AbstractFacade.php:55

This is the code of my Facade:

<?php


namespace App\Facades;


use Indragunawan\FacadeBundle\AbstractFacade;


/**
 * @method static object get(string $id)
 * Class Container
 */
class Container extends AbstractFacade
{

    /**
     * Get the registered id of the service.
     *
     * @return string
     */
    protected static function getFacadeAccessor()
    {
        return 'Symfony\Component\DependencyInjection\ContainerInterface';
    }
}

What I'm doing wrong?

BTW I'm using Symfony 3.4

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant