Skip to content

Commit

Permalink
Drop SF 4 and add SF 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
maelanleborgne committed Jan 8, 2024
1 parent 30b284f commit 2ae5a41
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
23 changes: 7 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,15 @@ Install via Composer:
$ composer require isometriks/spam-bundle
```

Use `~0.3.0` for Symfony 2.3-2.7, or `~1.0` for 3+

Add to AppKernel.php (done automatically for Symfony Flex):
If you're not using Symfony Flex, add the bundle to your `config/bundles.php` file:

```php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
// ...
new Isometriks\Bundle\SpamBundle\IsometriksSpamBundle(),
// ...
];

return $bundles;
}
}
// config/bundles.php

return [
// ...
Isometriks\Bundle\SpamBundle\IsometriksSpamBundle::class => ['all' => true],
];
```

Currently we have:
Expand Down
24 changes: 12 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "isometriks/spam-bundle",
"description": "Provides spam protection for Symfony3 forms",
"keywords": ["spam", "symfony3"],
"description": "Provides spam protection for Symfony forms",
"keywords": ["spam", "symfony", "form", "bundle"],
"require": {
"php": ">=7.4",
"symfony/config": "^4.4 || ^5.4 || ^6.0",
"symfony/dependency-injection": "^4.4 || ^5.4 || ^6.0",
"symfony/event-dispatcher": "^4.4 || ^5.4 || ^6.0",
"symfony/form": "^4.4 || ^5.4 || ^6.0",
"symfony/http-foundation": "^4.4 || ^5.4 || ^6.0",
"symfony/http-kernel": "^4.4 || ^5.4 || ^6.0",
"symfony/options-resolver": "^4.4 || ^5.4 || ^6.0",
"symfony/config": "^5.4 || ^6.0 || ^7.0",
"symfony/dependency-injection": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher": "^5.4 || ^6.0 || ^7.0",
"symfony/form": "^5.4 || ^6.0 || ^7.0",
"symfony/http-foundation": "^5.4 || ^6.0 || ^7.0",
"symfony/http-kernel": "^5.4 || ^6.0 || ^7.0",
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0",
"symfony/translation-contracts": "1.0 || ^2.0 || ^3.0",
"symfony/framework-bundle": "^4.4 || ^5.4 || ^6.0"
"symfony/framework-bundle": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.4 || ^6.0",
"symfony/yaml": "^4.4 || ^5.4 || ^6.3"
"symfony/phpunit-bridge": "^5.4 || ^6.0 || ^7.0",
"symfony/yaml": "^5.4 || ^6.0 || ^7.0"
},
"authors": [
{
Expand Down

0 comments on commit 2ae5a41

Please sign in to comment.