Merge pull request #117 from php-flasher/fix/symfony-dependencies

move twig and translator to composer suggest section
This commit is contained in:
Younes KHOUBZA
2023-01-21 14:27:07 +01:00
committed by GitHub
4 changed files with 28 additions and 31 deletions
+9 -9
View File
@@ -35,24 +35,24 @@
}
],
"require": {
"php": ">=5.3",
"php": ">=5.3"
},
"require-dev": {
"ext-json": "*",
"ext-mbstring": "*",
"ergebnis/composer-normalize": "^2.29",
"friendsofphp/php-cs-fixer": "^3.13",
"illuminate/routing": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/support": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
"livewire/livewire": "^2.10",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"symfony/config": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/console": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/http-kernel": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/translation": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/twig-bundle": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0"
},
"require-dev": {
"ergebnis/composer-normalize": "^2.29",
"friendsofphp/php-cs-fixer": "^3.13",
"livewire/livewire": "^2.10",
"phpstan/phpstan": "^1.9",
"phpunit/phpunit": "^9.5",
"symfony/twig-bundle": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symplify/monorepo-builder": "^11.1"
},
"replace": {
+1 -7
View File
@@ -10,13 +10,7 @@
>
<testsuites>
<testsuite name="flasher">
<directory>tests</directory>
<directory>tests/Prime</directory>
</testsuite>
</testsuites>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
</phpunit>
+13 -12
View File
@@ -5,11 +5,12 @@
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
*/
return array(
/*
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| Default PHPFlasher library
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| This option controls the default library that will be used by PHPFlasher
| to display notifications in your Laravel application. PHPFlasher supports
| several libraries, including "flasher", "toastr", "noty", "notyf",
@@ -32,9 +33,9 @@ return array(
'default' => 'flasher',
/*
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| Main PHPFlasher javascript file
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| This option specifies the location of the main javascript file that is
| required by PHPFlasher to display notifications in your Laravel application.
|
@@ -55,9 +56,9 @@ return array(
),
/*
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| Whether to use CDN for PHPFlasher assets or not
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| This option controls whether PHPFlasher should use CDN links or local assets
| for its javascript and CSS files. By default, PHPFlasher uses CDN links
| to serve the latest version of the library. However, you can also choose
@@ -72,9 +73,9 @@ return array(
'use_cdn' => true,
/*
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| Translate PHPFlasher messages
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| This option controls whether PHPFlasher should pass its messages to the Laravel's
| translation service for localization.
|
@@ -88,9 +89,9 @@ return array(
'auto_translate' => true,
/*
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| Inject PHPFlasher in Response
|--------------------------------------------------------------------------
|---------------------------------------------------------------------------
| This option controls whether PHPFlasher should automatically inject its
| javascript and CSS files into the HTML response of your Laravel application.
|
@@ -144,9 +145,9 @@ return array(
),
/*
|-----------------------------------------------------------------------
|---------------------------------------------------------------------------
| Global Filter Criteria
|-----------------------------------------------------------------------
|---------------------------------------------------------------------------
| This option allows you to filter the notifications that are displayed
| in your Laravel application. By default, all notifications are displayed,
| but you can use this option to limit the number of notifications or
+5 -3
View File
@@ -41,9 +41,11 @@
"symfony/config": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/console": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/dependency-injection": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/http-kernel": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/translation": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0",
"symfony/twig-bundle": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0"
"symfony/http-kernel": "^2.0 || ^3.0 || ^4.0 || ^5.0 || ^6.0"
},
"suggest": {
"symfony/translation": "To translate flash messages, title and presets",
"symfony/twig-bundle": "To create custom themes using twig templates"
},
"minimum-stability": "stable",
"prefer-stable": true,