Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@
"joomla/application": "^4.0",
"joomla/event": "^4.0",
"joomla/string": "^4.0",
"symfony/console": "^v7.0.0",
"symfony/error-handler": "^7"
"symfony/console": "^7.0 || ^8.0"
},
"require-dev": {
"joomla/test": "^4.0",
"phpunit/phpunit": "^12.5 || ^13.0",
"psr/container": "^2.0",
"squizlabs/php_codesniffer": "^4.0",
"symfony/error-handler": "^7.0 || ^8.0",
"phpstan/phpstan": "^2.1.17",
"phpstan/phpstan-deprecation-rules": "^2.0.3"
},
"suggest": {
"psr/container-implementation": "To use the ContainerLoader"
"psr/container-implementation": "To use the ContainerLoader",
"symfony/error-handler": "To route uncaught exceptions to the application when the Symfony ErrorHandler is registered"
},
"autoload": {
"psr-4": {
Expand All @@ -34,5 +35,6 @@
"Joomla\\Console\\Tests\\": "tests/"
}
},
"minimum-stability": "dev"
"minimum-stability": "dev",
"prefer-stable": true
}
5 changes: 5 additions & 0 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ excellent infrastructure however its two main pieces, the base Application class
the Joomla code structure and methodology. Therefore, this package provides a replacement for these core classes and aims to be able
to use the Symfony component API as practical.

Since 4.1 the package works with Symfony Console 7 and 8 (Symfony 8 needs PHP 8.4). `symfony/error-handler` is no

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version number must be checked for next release.

longer installed with it: the application only checks whether Symfony's `ErrorHandler` is the registered exception
handler and, if so, routes uncaught exceptions to its own rendering through it. Require `symfony/error-handler` in your
project if you use it.

### Console Application

Unlike the Application's `AbstractCliApplication` class, this package provides a fully functional and somewhat opinionated `Application` class
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ includes:

parameters:
level: 5
phpVersion: 80100
phpVersion: 80300
reportUnmatchedIgnoredErrors: false
paths:
- src
Loading