Skip to content

Commit

Permalink
Craft 4 only
Browse files Browse the repository at this point in the history
  • Loading branch information
ostark committed Apr 19, 2024
1 parent 88eb242 commit 79f26a6
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/QueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function getPreparedCommand(callable $wrapper = null): string
throw new PhpExecutableNotFound('Unable to find php executable.');
}

$php = str_replace(' ', '\ ', $php);
$path = realpath(CRAFT_BASE_PATH);
$script = $path . DIRECTORY_SEPARATOR . $this->scriptName;
$commandLine = implode(" ", [$php, $script, $this->scriptArgs]);
Expand Down
2 changes: 1 addition & 1 deletion tests/RateLimiterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
class RateLimiterTest extends TestCase
{
public $plugin;
public \ostark\AsyncQueue\Plugin $plugin;

public function setUp(): void
{
Expand Down
27 changes: 27 additions & 0 deletions tests/_craft/storage/logs/console-2024-04-19.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
2024-04-19 07:45:38 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":9824936}
2024-04-19 07:46:28 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:46:28 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378264}
2024-04-19 07:46:34 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:46:34 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378304}
2024-04-19 07:46:35 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:46:35 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378304}
2024-04-19 07:47:06 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:47:06 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378296}
2024-04-19 07:47:11 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377952}
2024-04-19 07:47:11 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378368}
2024-04-19 07:47:15 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377952}
2024-04-19 07:47:15 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378368}
2024-04-19 07:47:38 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377952}
2024-04-19 07:47:38 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378368}
2024-04-19 07:47:42 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:47:42 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378304}
2024-04-19 07:47:54 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:47:54 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378304}
2024-04-19 07:47:55 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:47:55 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378304}
2024-04-19 07:48:00 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":8712496}
2024-04-19 07:48:00 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":9824936}
2024-04-19 07:48:03 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48377888}
2024-04-19 07:48:03 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":48378304}
2024-04-19 07:48:20 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":8712488}
2024-04-19 07:48:20 [console.INFO] [yii\db\Connection::open] Opening DB connection: mysql:host=;dbname=;port=3306 {"memory":8712488}
1 change: 1 addition & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
$configService->appDefaultsDir = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'defaults';
$generalConfig = $configService->getConfigFromFile('general');

/** @var array{class: class-string, array<string, mixed>} $config */
$config = \craft\helpers\ArrayHelper::merge(
[
'vendorPath' => CRAFT_VENDOR_PATH,
Expand Down

0 comments on commit 79f26a6

Please sign in to comment.