Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Add enqueue() to the upgrade command
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Feb 26, 2024
1 parent da7042e commit d939d5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function handle()
$this->replacements = [
'use StoutLogic\\AcfBuilder\\FieldsBuilder;' => 'use Log1x\\AcfComposer\\Builder;',
'new FieldsBuilder(' => 'Builder::make(',
'public function enqueue()', 'public function enqueue($block)',
'/->addFields\(\$this->get\((.*?)\)\)/' => fn ($match) => "->addPartial({$match[1]})",
];

Expand Down

0 comments on commit d939d5d

Please sign in to comment.