Skip to content

Commit

Permalink
chore: migration symfony 6
Browse files Browse the repository at this point in the history
chore: migration symfony 6

chore: migration symfony 6
  • Loading branch information
Paul-Joseph committed Nov 14, 2023
1 parent 426a271 commit 8e690c5
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 53 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ jobs:
strategy:
matrix:
symfony-version:
- "3.4.*"
- "4.0.*"
- "4.4.*"
- "5.4.*"
- "6.3.*"
php-version:
- "7.2"
- "7.3"
- "7.4"
- "8.1.*"
- "8.2.*"
dependencies:
- "lowest"
- "highest"
Expand Down
5 changes: 3 additions & 2 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
->append([__FILE__])
;

return PhpCsFixer\Config::create()
->setUsingCache(true)
$config = new PhpCsFixer\Config();

return $config->setUsingCache(true)
->setRules([
'@DoctrineAnnotation' => true,
'@PSR2' => true,
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
}
],
"require": {
"php": "^7.2",
"symfony/dependency-injection": "^3.4 || ^4.0",
"symfony/http-foundation": "^3.4 || ^4.0",
"symfony/http-kernel": "^3.4 || ^4.0",
"symfony/security-core": "^3.4 || ^4.0",
"symfony/config": "^3.4 || ^4.0",
"sonata-project/media-bundle": "^3.0",
"sonata-project/admin-bundle": "^3.40"
"php": ">=8.1",
"symfony/dependency-injection": "^6.3",
"symfony/http-foundation": "^6.3",
"symfony/http-kernel": "^6.3",
"symfony/security-core": "^6.3",
"symfony/config": "^6.3",
"sonata-project/media-bundle": "^3.0 || ^4.0",
"sonata-project/admin-bundle": "^3.40 || ^4.0"
},
"require-dev": {
"symfony/phpunit-bridge": "^3.4.19 || ^4.0"
Expand Down
44 changes: 16 additions & 28 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="CKEditorSonataMediaBundle Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory>./src/</directory>
<exclude>
<directory>./src/Resources/</directory>
<directory>./src/DependencyInjection/</directory>
</exclude>
</whitelist>
</filter>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" bootstrap="vendor/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage/>
<testsuites>
<testsuite name="CKEditorSonataMediaBundle Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>./src/</directory>
</include>
<exclude>
<directory>./src/Resources/</directory>
<directory>./src/DependencyInjection/</directory>
</exclude>
</source>
</phpunit>
3 changes: 0 additions & 3 deletions src/Admin/MediaAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
*/
class MediaAdminExtension extends AbstractAdminExtension
{
/**
* {@inheritdoc}
*/
public function configureRoutes(AdminInterface $admin, RouteCollection $collection)
{
$collection->add('browser', 'browser');
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
*/
final class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('coop_tilleuls_ck_editor_sonata_media');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
*/
final class CoopTilleulsCKEditorSonataMediaExtension extends Extension
{
/**
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container): void
{
$configuration = new Configuration();
Expand Down

0 comments on commit 8e690c5

Please sign in to comment.