diff --git a/composer.json b/composer.json index 4a5933c6..2e9f81ad 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ "lion/command": "^3.1", "lion/database": "^10.3", "lion/dependency-injection": "^2.0", - "lion/exceptions": "^1.2", + "lion/exceptions": "^1.3", "lion/files": "^7.0", "lion/helpers": "^4.0", "lion/mailer": "^6.0", diff --git a/composer.lock b/composer.lock index 3207ce47..50a0faaa 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c03116ba2cc202d3d8546214617cbe34", + "content-hash": "76a66cb031b01922956125952c5c82fc", "packages": [ { "name": "carbonphp/carbon-doctrine-types", @@ -1023,16 +1023,16 @@ }, { "name": "lion/exceptions", - "version": "v1.2.0", + "version": "v1.3.0", "source": { "type": "git", "url": "https://github.com/lion-packages/exceptions.git", - "reference": "b0325f937a14d455603c31304270ac13a75fda80" + "reference": "1ed281a8d7b0075b8fd60f6b8f9592f24ef50760" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/lion-packages/exceptions/zipball/b0325f937a14d455603c31304270ac13a75fda80", - "reference": "b0325f937a14d455603c31304270ac13a75fda80", + "url": "https://api.github.com/repos/lion-packages/exceptions/zipball/1ed281a8d7b0075b8fd60f6b8f9592f24ef50760", + "reference": "1ed281a8d7b0075b8fd60f6b8f9592f24ef50760", "shasum": "" }, "require": { @@ -1041,7 +1041,7 @@ "require-dev": { "guzzlehttp/guzzle": "^7.8", "lion/test": "^2.0", - "phpunit/phpunit": "^10.5" + "phpunit/phpunit": "^11.4" }, "type": "library", "autoload": { @@ -1056,9 +1056,9 @@ "description": "Handling exceptions and serializations", "support": { "issues": "https://github.com/lion-packages/exceptions/issues", - "source": "https://github.com/lion-packages/exceptions/tree/v1.2.0" + "source": "https://github.com/lion-packages/exceptions/tree/v1.3.0" }, - "time": "2024-06-29T20:45:18+00:00" + "time": "2024-10-22T19:52:19+00:00" }, { "name": "lion/files", diff --git a/src/LionBundle/Commands/Lion/New/CommandsCommand.php b/src/LionBundle/Commands/Lion/New/CommandsCommand.php index b19a8265..8e4e6748 100644 --- a/src/LionBundle/Commands/Lion/New/CommandsCommand.php +++ b/src/LionBundle/Commands/Lion/New/CommandsCommand.php @@ -82,9 +82,9 @@ protected function configure(): void * @param OutputInterface $output [OutputInterface is the interface * implemented by all Output classes] * - * @return int 0 if everything went fine, or an exit code + * @return int [0 if everything went fine, or an exit code] * - * @throws LogicException When this abstract method is not implemented + * @throws LogicException [When this abstract method is not implemented] */ protected function execute(InputInterface $input, OutputInterface $output): int { diff --git a/src/LionBundle/Commands/Lion/Schedule/UpScheduleCommand.php b/src/LionBundle/Commands/Lion/Schedule/UpScheduleCommand.php index 013e2ef2..0945ebdf 100644 --- a/src/LionBundle/Commands/Lion/Schedule/UpScheduleCommand.php +++ b/src/LionBundle/Commands/Lion/Schedule/UpScheduleCommand.php @@ -136,13 +136,13 @@ protected function execute(InputInterface $input, OutputInterface $output): int return Command::FAILURE; } - /** @var array $files */ + /** @var array $files */ $files = []; foreach ($this->container->getFiles('app/Console/Cron/') as $file) { if (isSuccess($this->store->validate([$file], ['php']))) { $namespace = $this->container->getNamespace( - (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? str_replace('\\', '/', $file) : $file), + $this->store->normalizePath($file), 'App\\Console\\Cron\\', $this->store->normalizePath('Cron/') ); @@ -190,9 +190,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int /** @var Command $commandObject */ $commandObject = new $config['command']; - $command = "{$config['cron']} cd {$_ENV['CRONTAB_PROJECT_PATH']}"; + $command = "{$config['cron']} lion cd {$_ENV['CRONTAB_PROJECT_PATH']} && "; - $command .= " && {$_ENV['CRONTAB_PHP_PATH']} {$_ENV['CRONTAB_PROJECT_PATH']}lion {$commandObject->getName()}"; + $command .= "{$_ENV['CRONTAB_PHP_PATH']} {$_ENV['CRONTAB_PROJECT_PATH']}lion {$commandObject->getName()}"; $command .= '' === $options ? '' : " {$options}";