PropelBundle icon indicating copy to clipboard operation
PropelBundle copied to clipboard

Symfony 3.4 Flex `The "propel.logger" service is private` deprecation notice

Open ldath opened this issue 8 years ago • 1 comments

Hi,

PropelBundle have issues with the Symfony 3.4 when running functional tests:

The "propel.logger" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead: 1x
    1x in DefaultControllerTest::testIndex from App\Tests\Controller

ldath avatar Jan 06 '18 15:01 ldath

"propel/propel-bundle/Resources/config/propel.xml"

please try public="true" don't forget cache:clear!

      <service id="propel.logger" class="%propel.logger.class%" public="true">
         <tag name="monolog.logger" channel="propel" />
         <argument type="service" id="logger" on-invalid="null" />
         <argument type="service" id="debug.stopwatch" on-invalid="null" />
     </service>

hsashi avatar Feb 21 '18 07:02 hsashi

All further dev and tickets should go into https://github.com/SkyFoxvn/PropelBundle as this will most likely be the follower of this now.

dereuromark avatar Nov 21 '22 12:11 dereuromark