Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-22225

Publishing content in a symfony command throws InactiveScopeException

    Details

    • Sprint:
      Ventoux Sprint 4

      Description

      Creating a custom console command is returning the following error:

        [Symfony\Component\DependencyInjection\Exception\InactiveScopeException]   
        You cannot create a service ("request") of an inactive scope ("request").
      

      Steps:

      1. Created a new bundle "php ezpublish/console generate:bundle"
      2. Inside this bundle created a command that uses public API
      3. Run the command with "php ezpublish/console <command>"

        Issue Links

          Activity

          Hide
          Jérôme Vieilledent (Inactive) added a comment - - edited

          Joao Pingo: Does it happen in 5.2 / 5.1 ?

          Show
          Jérôme Vieilledent (Inactive) added a comment - - edited Joao Pingo : Does it happen in 5.2 / 5.1 ?
          Show
          Jérôme Vieilledent (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/713
          Hide
          Joao Pingo (Inactive) added a comment -

          [~jerome.vieilledent@ez.no]
          Tested in 5.1 and 5.2, the problem is not present ...

          Show
          Joao Pingo (Inactive) added a comment - [~jerome.vieilledent@ez.no] Tested in 5.1 and 5.2, the problem is not present ...
          Show
          Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/7f1be53464788c94ee2efc9ffd4350fb194817a4
          Hide
          Pedro Resende (Inactive) added a comment -

          Tested and approved by Q.A.

          Show
          Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.

            People

            • Assignee:
              Unassigned
              Reporter:
              Joao Pingo (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 54 minutes
                2h 54m

                  Agile