Skip to content

Commit a1c5b4a

Browse files
committed
Fixed ‘drush cr’ command replacement on Drush 12. Not compatible with Drush 11.
1 parent 532c9ae commit a1c5b4a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"drupal/core": "*",
4444
"drupal/core-dev": "*",
4545
"drupal/core-recommended": "*",
46-
"drush/drush": "^11.6 || ^12",
46+
"drush/drush": "^12",
4747
"phpspec/prophecy-phpunit": "*",
4848
"symfony/var-dumper": "^5.4 | ^6.2"
4949
},

drush/Commands/core_development/DevelopmentProjectCommands.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Drupal\Core\Site\Settings;
88
use Drush\Commands\DrushCommands;
99
use Drush\Drush;
10+
use Psr\Container\ContainerInterface as DrushContainer;
1011
use Symfony\Component\DependencyInjection\ContainerInterface;
1112
use Symfony\Component\HttpFoundation\Request;
1213

@@ -27,7 +28,7 @@ public function __construct(
2728
parent::__construct();
2829
}
2930

30-
public static function create(ContainerInterface $container, $drush_container): self {
31+
public static function createEarly(DrushContainer $drush_container): self {
3132
$commandHandler = new static(
3233
$drush_container->get('loader')
3334
);

0 commit comments

Comments
 (0)