Skip to content

Commit

Permalink
maj composer sf7 (#17)
Browse files Browse the repository at this point in the history
* maj composer sf7
* remove mongodb
---------

Co-authored-by: Gilles Gauthier <[email protected]>
  • Loading branch information
gilles-g and gilles-g authored Jan 15, 2024
1 parent d2da595 commit 7a1ab5c
Show file tree
Hide file tree
Showing 22 changed files with 87 additions and 1,279 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,24 @@ env:
jobs:
build:
runs-on: ubuntu-latest
name: PHP v${{ matrix.php }}, Symfony v${{ matrix.symfony }}} with Mongo v${{ matrix.mongodb }}
name: PHP v${{ matrix.php }}, Symfony v${{ matrix.symfony }}}
strategy:
fail-fast: false
matrix:
include:
- { php: 7.4, mongodb: 3.6, symfony: "5.4.*", composer-flags: '--prefer-stable'}
- { php: 8.2, mongodb: 3.6, symfony: "5.4.*", composer-flags: '--prefer-stable'}
- { php: 8.2, mongodb: 3.6, symfony: "6.0.*", composer-flags: '--prefer-stable'}
- { php: 8.2, mongodb: 3.6, symfony: "6.1.*", composer-flags: '--prefer-stable' }
- { php: 8.2, mongodb: 3.6, symfony: "6.2.*", composer-flags: '--prefer-stable' }
- { php: 8.2, mongodb: 3.6, symfony: "6.3.*@dev", composer-flags: '' }

services:
mongo:
image: mongo:${{ matrix.mongodb }}
ports:
- 27017:27017
- { php: 7.4, symfony: "5.4.*", composer-flags: '--prefer-stable'}
- { php: 8.3, symfony: "6.4.*", composer-flags: '--prefer-stable'}
- { php: 8.2, symfony: "6.3.*", composer-flags: '--prefer-stable'}
- { php: 8.2, symfony: "6.4.*", composer-flags: '--prefer-stable' }
- { php: 8.3, symfony: "7.0.*", composer-flags: '--prefer-stable' }

steps:
- uses: actions/checkout@v2
- name: "Installing php"
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: curl,mbstring,xdebug,mongodb
extensions: curl,mbstring,xdebug
ini-values: date.timezone="Europe/Paris"
coverage: xdebug
tools: "composer:v2,flex"
Expand All @@ -50,7 +43,7 @@ jobs:

- name: "Require symfony/messenger"
run: "composer require --dev symfony/doctrine-messenger --no-update"
if: "${{ startsWith(matrix.symfony, '5.3') || startsWith(matrix.symfony, '5.4') }}"
if: "${{ startsWith(matrix.symfony, '5.4') }}"

- name: Cache Composer dependencies
uses: actions/cache@v2
Expand All @@ -62,8 +55,6 @@ jobs:
- name: Install dependencies
run: |
perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json
composer config platform.ext-mongo 1.6.16
composer require alcaeus/mongo-php-adapter --no-update
composer update ${{ matrix.composer-flags }} --prefer-dist
env:
SYMFONY_REQUIRE: "${{ matrix.symfony }}"
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG-10.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CHANGELOG 10.0
==============

- Remove all code related to MONGO and ODM
- Because it's a complicated to maintain and I'm not very sure that the bundle is used with mongo
- And I'm alone so I don't want to maintain mongodb anymore
1 change: 0 additions & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ public function getConfigTreeBuilder(): TreeBuilder
->children()
->booleanNode('doctrine_dbal')->defaultFalse()->end()
->booleanNode('doctrine_orm')->defaultTrue()->end()
->booleanNode('doctrine_mongodb')->defaultFalse()->end()
->end()
->end()

Expand Down
2 changes: 0 additions & 2 deletions DependencyInjection/SpiriitFormFilterExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace Spiriit\Bundle\FormFilterBundle\DependencyInjection;

use Spiriit\Bundle\FormFilterBundle\DependencyInjection\Configuration;
use Spiriit\Bundle\FormFilterBundle\Filter\FilterBuilderUpdaterInterface;
use Spiriit\Bundle\FormFilterBundle\Filter\FilterOperands;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down
76 changes: 0 additions & 76 deletions Event/Listener/DoctrineMongoDBApplyFilterListener.php

This file was deleted.

Loading

0 comments on commit 7a1ab5c

Please sign in to comment.