Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-12686

CLI cron:run doesn't load extensions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • 3.1.0-RC1
    • 3.1.0-b4
    • CLI, Extensions
    • None

      This might be related to PHPBB3-12685. Created after posting to https://area51.phpbb.com/phpBB/viewtopic.php?p=265837

      my extension services.yml :

          rfd.cron.my_cron:
              class: rfd\extension\cron\my_cron
              arguments:
                  - @request
                  - @config
                  - @dbal.conn
              calls:
                  - [set_name, [rfd.cron.my_cron]]
              tags:
                  - { name: cron.task }
      

      Debugging the service collection, shows that it doesn't locate the extension service.

            prototech prototech [X] (Inactive)
            rfdy rfdy [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: