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

Contao 4.6 private service issue #47

Open
MicioMax opened this issue Nov 1, 2018 · 0 comments
Open

Contao 4.6 private service issue #47

MicioMax opened this issue Nov 1, 2018 · 0 comments

Comments

@MicioMax
Copy link

MicioMax commented Nov 1, 2018

On Contao4.6, I get this error :

The "phpbb_bridge.connector" service or alias has been removed or inlined when the container was compiled
solved patching "/src/Resources/config/services.yml" from

services:
    phpbb_bridge.connector:
        class: Ctsmedia\Phpbb\BridgeBundle\PhpBB\Connector
        arguments:
            - "@database_connection"
    phpbb_bridge.event_listener.contao_member_listener:
        class: Ctsmedia\Phpbb\BridgeBundle\EventListener\ContaoMemberListener
        public: true
        arguments:
          - "@phpbb_bridge.connector"
          - "@monolog.logger.contao"

to

services:
    phpbb_bridge.connector:
        class: Ctsmedia\Phpbb\BridgeBundle\PhpBB\Connector
        public: true
        arguments:
            - "@database_connection"
    phpbb_bridge.event_listener.contao_member_listener:
        class: Ctsmedia\Phpbb\BridgeBundle\EventListener\ContaoMemberListener
        public: true
        arguments:
          - "@phpbb_bridge.connector"
          - "@monolog.logger.contao"

So, made the 'phpbb_bridge.connector' service public.
This is a quick and dirty solution, it should be solved by dependency injection, but that's beyond my skills.

This was referenced Nov 2, 2018
Closed
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