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

eZWorkflowType don't use ezpAutoloader

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Medium Medium
    • None
    • 4.4.0
    • Legacy > Workflows
    • None
    • Version: 4.4

    Description

      Hi !

      The workflow classes are in the autoload array.
      But the method eZWorkflowType::loadAndRegisterType don't use it but use his own include file.
      So we can't override a kernel workflow easily.

      Best regards,
      Thomas.

      Steps to reproduce

      Try to overwrite a kernel workflow.
      For example :

      • Create the file extension/my_extension/eventtypes/event/ezmultiplexer/ezmultiplexertype.php
      • Allow the kernel override in config.php
      • Regenerate the autoload array : bin/php/ezpgenerateautoloads.php -o
      • You can see in the var/autoload/ezp_override.php file that your workflow is overwrite
        But it doesn't

      Attachments

        Activity

          People

            unknown unknown
            tzilliox tzilliox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: