Skip to content

Commit

Permalink
[DependencyInjection] Sort PassConfig:TYPE_* by order of execution
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Oct 8, 2024
1 parent 17eeffb commit 808f752
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Compiler/PassConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
*/
class PassConfig
{
public const TYPE_AFTER_REMOVING = 'afterRemoving';
// In the order of execution
public const TYPE_BEFORE_OPTIMIZATION = 'beforeOptimization';
public const TYPE_BEFORE_REMOVING = 'beforeRemoving';
public const TYPE_OPTIMIZE = 'optimization';
public const TYPE_BEFORE_REMOVING = 'beforeRemoving';
public const TYPE_REMOVE = 'removing';
public const TYPE_AFTER_REMOVING = 'afterRemoving';

private MergeExtensionConfigurationPass $mergePass;
private array $afterRemovingPasses;
Expand Down

0 comments on commit 808f752

Please sign in to comment.