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

Publishing content in a symfony command throws InactiveScopeException

    XMLWordPrintable

Details

    • 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>"

      Attachments

        Activity

          People

            Unassigned Unassigned
            Joao.Pingo-obsolete@ez.no 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