Browse Source

chg: dev: upgrade symfony to 5 #8

master
Lang 1 month ago
parent
commit
79c35d57ad
25 changed files with 4774 additions and 4336 deletions
  1. +7
    -6
      .env.dist
  2. +5
    -0
      .env.test
  3. +6
    -0
      .gitignore
  4. +13
    -0
      bin/phpunit
  5. +31
    -20
      composer.json
  6. +4473
    -3944
      composer.lock
  7. +4
    -0
      config/packages/dev/debug.yaml
  8. +0
    -12
      config/packages/dev/jms_serializer.yaml
  9. +0
    -4
      config/packages/dev/swiftmailer.yaml
  10. +4
    -4
      config/packages/doctrine_migrations.yaml
  11. +0
    -3
      config/packages/framework.yaml
  12. +0
    -13
      config/packages/jms_serializer.yaml
  13. +3
    -0
      config/packages/mailer.yaml
  14. +0
    -6
      config/packages/prod/jms_serializer.yaml
  15. +0
    -3
      config/packages/swiftmailer.yaml
  16. +0
    -2
      config/packages/test/swiftmailer.yaml
  17. +0
    -11
      config/packages/twig_extensions.yaml
  18. +1
    -1
      config/routes/dev/twig.yaml
  19. +0
    -0
      migrations/.gitignore
  20. +33
    -0
      phpunit.xml.dist
  21. +6
    -15
      public/index.php
  22. +0
    -105
      src/Admin/ProjectAdmin.php
  23. +0
    -0
      src/Migrations/.gitignore
  24. +177
    -187
      symfony.lock
  25. +11
    -0
      tests/bootstrap.php

+ 7
- 6
.env.dist View File

@@ -16,9 +16,10 @@ APP_SECRET=c78ebf740b9db52319c2c0a201923d62
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$
###< nelmio/cors-bundle ###

###> symfony/mailer ###
# MAILER_DSN=smtp://localhost
###< symfony/mailer ###

+ 5
- 0
.env.test View File

@@ -0,0 +1,5 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther

+ 6
- 0
.gitignore View File

@@ -31,3 +31,9 @@ npm-debug.log
npm-debug.log
yarn-error.log
###< symfony/webpack-encore-bundle ###

###> symfony/phpunit-bridge ###
.phpunit
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

+ 13
- 0
bin/phpunit View File

@@ -0,0 +1,13 @@
#!/usr/bin/env php
<?php

if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}

if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
}

require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';

+ 31
- 20
composer.json View File

@@ -5,26 +5,38 @@
"php": "^7.4",
"ext-ctype": "*",
"ext-iconv": "*",
"sonata-project/admin-bundle": "^3.0",
"sonata-project/core-bundle": "^3.0",
"sonata-project/doctrine-orm-admin-bundle": "^3.0",
"sonata-project/media-bundle": "^3.0",
"sonata-project/user-bundle": "^4.0",
"symfony/console": "^4.0",
"symfony/flex": "^1.0",
"symfony/framework-bundle": "^4.0",
"symfony/monolog-bundle": "^3.0",
"symfony/orm-pack": "^1.0",
"symfony/requirements-checker": "^1.0",
"symfony/swiftmailer-bundle": "^3.0",
"symfony/twig-bundle": "^4.0",
"symfony/webpack-encore-bundle": "^1.0",
"symfony/yaml": "^4.0"
"api-platform/admin-pack": "^1.0",
"sensio/framework-extra-bundle": "^5.5",
"symfony/asset": "5.1.*",
"symfony/console": "5.1.*",
"symfony/dotenv": "5.1.*",
"symfony/expression-language": "5.1.*",
"symfony/flex": "^1.3.1",
"symfony/form": "5.1.*",
"symfony/framework-bundle": "5.1.*",
"symfony/http-client": "5.1.*",
"symfony/intl": "5.1.*",
"symfony/mailer": "5.1.*",
"symfony/mime": "5.1.*",
"symfony/monolog-bundle": "^3.1",
"symfony/notifier": "5.1.*",
"symfony/orm-pack": "*",
"symfony/process": "5.1.*",
"symfony/security-bundle": "5.1.*",
"symfony/serializer-pack": "*",
"symfony/string": "5.1.*",
"symfony/translation": "5.1.*",
"symfony/twig-pack": "*",
"symfony/validator": "5.1.*",
"symfony/web-link": "5.1.*",
"symfony/webpack-encore-bundle": "^1.7",
"symfony/yaml": "5.1.*"
},
"require-dev": {
"symfony/dotenv": "^4.1",
"symfony/profiler-pack": "^1.0",
"symfony/maker-bundle": "^1.6"
"symfony/debug-pack": "*",
"symfony/maker-bundle": "^1.0",
"symfony/profiler-pack": "*",
"symfony/test-pack": "*"
},
"config": {
"preferred-install": {
@@ -52,8 +64,7 @@
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd",
"requirements-checker": "script"
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"@auto-scripts"


+ 4473
- 3944
composer.lock
File diff suppressed because it is too large
View File


+ 4
- 0
config/packages/dev/debug.yaml View File

@@ -0,0 +1,4 @@
debug:
# Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser.
# See the "server:dump" command to start a new server.
dump_destination: "tcp://%env(VAR_DUMPER_SERVER)%"

+ 0
- 12
config/packages/dev/jms_serializer.yaml View File

@@ -1,12 +0,0 @@
jms_serializer:
visitors:
json_serialization:
options:
- JSON_PRETTY_PRINT
- JSON_UNESCAPED_SLASHES
- JSON_PRESERVE_ZERO_FRACTION
json_deserialization:
options:
- JSON_PRETTY_PRINT
- JSON_UNESCAPED_SLASHES
- JSON_PRESERVE_ZERO_FRACTION

+ 0
- 4
config/packages/dev/swiftmailer.yaml View File

@@ -1,4 +0,0 @@
# See https://symfony.com/doc/current/email/dev_environment.html
swiftmailer:
# send all emails to a specific address
#delivery_addresses: ['me@example.com']

+ 4
- 4
config/packages/doctrine_migrations.yaml View File

@@ -1,5 +1,5 @@
doctrine_migrations:
dir_name: '%kernel.project_dir%/src/Migrations'
# namespace is arbitrary but should be different from App\Migrations
# as migrations classes should NOT be autoloaded
namespace: DoctrineMigrations
migrations_paths:
# namespace is arbitrary but should be different from App\Migrations
# as migrations classes should NOT be autoloaded
'DoctrineMigrations': '%kernel.project_dir%/migrations'

+ 0
- 3
config/packages/framework.yaml View File

@@ -28,6 +28,3 @@ framework:

# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
#app: cache.adapter.apcu

templating:
engines: ['twig']

+ 0
- 13
config/packages/jms_serializer.yaml View File

@@ -1,13 +0,0 @@
jms_serializer:
visitors:
xml_serialization: ~
xml_deserialization: ~
# metadata:
# auto_detection: false
# directories:
# any-name:
# namespace_prefix: "My\\FooBundle"
# path: "@MyFooBundle/Resources/config/serializer"
# another-name:
# namespace_prefix: "My\\BarBundle"
# path: "@MyBarBundle/Resources/config/serializer"

+ 3
- 0
config/packages/mailer.yaml View File

@@ -0,0 +1,3 @@
framework:
mailer:
dsn: '%env(MAILER_DSN)%'

+ 0
- 6
config/packages/prod/jms_serializer.yaml View File

@@ -1,6 +0,0 @@
jms_serializer:
visitors:
json:
options:
- JSON_UNESCAPED_SLASHES
- JSON_PRESERVE_ZERO_FRACTION

+ 0
- 3
config/packages/swiftmailer.yaml View File

@@ -1,3 +0,0 @@
swiftmailer:
url: '%env(MAILER_URL)%'
spool: { type: 'memory' }

+ 0
- 2
config/packages/test/swiftmailer.yaml View File

@@ -1,2 +0,0 @@
swiftmailer:
disable_delivery: true

+ 0
- 11
config/packages/twig_extensions.yaml View File

@@ -1,11 +0,0 @@
services:
_defaults:
public: false
autowire: true
autoconfigure: true

# Uncomment any lines below to activate that Twig extension
#Twig\Extensions\ArrayExtension: ~
#Twig\Extensions\DateExtension: ~
#Twig\Extensions\IntlExtension: ~
#Twig\Extensions\TextExtension: ~

+ 1
- 1
config/routes/dev/twig.yaml View File

@@ -1,3 +1,3 @@
_errors:
resource: '@TwigBundle/Resources/config/routing/errors.xml'
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error

src/Admin/.gitignore → migrations/.gitignore View File


+ 33
- 0
phpunit.xml.dist View File

@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="bin/.phpunit/phpunit.xsd"
backupGlobals="false"
colors="true"
bootstrap="tests/bootstrap.php"
>
<php>
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<server name="SHELL_VERBOSITY" value="-1" />
<server name="SYMFONY_PHPUNIT_REMOVE" value="" />
<server name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
</php>

<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>

<listeners>
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
</listeners>
</phpunit>

+ 6
- 15
public/index.php View File

@@ -1,24 +1,15 @@
<?php

use App\Kernel;
use Symfony\Component\Debug\Debug;
use Symfony\Component\Dotenv\Dotenv;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;

require __DIR__.'/../vendor/autoload.php';
require dirname(__DIR__).'/vendor/autoload.php';

// The check is to ensure we don't use .env in production
if (!isset($_SERVER['APP_ENV'])) {
if (!class_exists(Dotenv::class)) {
throw new \RuntimeException('APP_ENV environment variable is not defined. You need to define environment variables for configuration or add "symfony/dotenv" as a Composer dependency to load variables from a .env file.');
}
(new Dotenv())->load(__DIR__.'/../.env');
}

$env = $_SERVER['APP_ENV'] ?? 'dev';
$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env));
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');

if ($debug) {
if ($_SERVER['APP_DEBUG']) {
umask(0000);

Debug::enable();
@@ -29,10 +20,10 @@ if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) {
}

if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) {
Request::setTrustedHosts(explode(',', $trustedHosts));
Request::setTrustedHosts([$trustedHosts]);
}

$kernel = new Kernel($env, $debug);
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();


+ 0
- 105
src/Admin/ProjectAdmin.php View File

@@ -1,105 +0,0 @@
<?php

namespace App\Admin;

use App\Entity\Project;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Form\Type\ModelListType;

/**
* Class ProjectAdmin
*
* @package App\Admin
* @author system7 <https://www.laszlolang.com>
*/
class ProjectAdmin extends AbstractAdmin
{
/** {@inheritdoc} */
protected $baseRouteName = 'project';

/** {@inheritdoc} */
protected $baseRoutePattern = 'project';

/**
* {@inheritdoc}
*/
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->with('Data', array('class' => 'col-md-6'))
->add(
'title',
null,
array(
'required' => true,
)
)
->add(
'codeName',
null,
array(
'required' => true,
)
)
->add(
'media',
ModelListType::class,
array(
'required' => false,
'btn_list' => false,
),
array(
'link_parameters' => array(
'context' => 'project'
)
))
->end();
}

/**
* {@inheritdoc}
*/
protected function configureDatagridFilters(DatagridMapper $datagridMapper)
{
$datagridMapper
->add('title');
}

/**
* {@inheritdoc}
*/
protected function configureListFields(ListMapper $listMapper)
{
/** Disable mosaic view */
unset($this->listModes['mosaic']);

$listMapper
->add('media')
->add('title')
->add('codeName')
->add(
'_action',
null,
array(
'actions' => array(
'edit' => array(),
)
)
);
}

/**
* @param Project $object
*
* @return string
*/
public function toString($object)
{
return $object instanceof Project
? $object->getTitle()
: 'Project';
}
}

+ 0
- 0
src/Migrations/.gitignore View File


+ 177
- 187
symfony.lock View File

@@ -1,6 +1,34 @@
{
"cocur/slugify": {
"version": "v3.2"
"api-platform/admin-pack": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "488ebfb0cddd283c16f4d072c6675ae7d7d52eb4"
},
"files": [
"assets/js/admin.js",
"config/routes/api_platform_admin.yaml",
"templates/admin.html.twig"
]
},
"api-platform/api-pack": {
"version": "v1.2.2"
},
"api-platform/core": {
"version": "2.5",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "2.5",
"ref": "a93061567140e386f107be75340ac2aee3f86cbf"
},
"files": [
"config/packages/api_platform.yaml",
"config/routes/api_platform.yaml",
"src/Entity/.gitignore"
]
},
"doctrine/annotations": {
"version": "1.0",
@@ -78,95 +106,33 @@
"doctrine/reflection": {
"version": "v1.0.0"
},
"doctrine/sql-formatter": {
"version": "1.1.0"
},
"egulias/email-validator": {
"version": "2.1.13"
},
"friendsofsymfony/user-bundle": {
"version": "v2.1.2"
"fig/link-util": {
"version": "1.1.1"
},
"guzzlehttp/psr7": {
"version": "1.6.1"
"laminas/laminas-zendframework-bridge": {
"version": "1.0.4"
},
"hoa/compiler": {
"version": "3.17.08.08"
},
"hoa/consistency": {
"version": "1.17.05.02"
},
"hoa/event": {
"version": "1.17.01.13"
},
"hoa/exception": {
"version": "1.17.01.16"
},
"hoa/file": {
"version": "1.17.07.11"
},
"hoa/iterator": {
"version": "2.17.01.10"
},
"hoa/math": {
"version": "1.17.05.16"
},
"hoa/protocol": {
"version": "1.17.01.14"
},
"hoa/regex": {
"version": "1.17.01.13"
},
"hoa/stream": {
"version": "1.17.02.21"
},
"hoa/ustring": {
"version": "4.17.01.16"
},
"hoa/visitor": {
"version": "2.17.01.16"
},
"hoa/zformat": {
"version": "1.17.01.10"
},
"imagine/imagine": {
"version": "1.2.3"
},
"jdorn/sql-formatter": {
"version": "v1.2.17"
},
"jms/metadata": {
"version": "2.1.0"
},
"jms/serializer": {
"version": "3.4.0"
"monolog/monolog": {
"version": "1.25.3"
},
"jms/serializer-bundle": {
"version": "3.0",
"nelmio/cors-bundle": {
"version": "1.5",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.0",
"ref": "384cec52df45f3bfd46a09930d6960a58872b268"
"version": "1.5",
"ref": "6388de23860284db9acce0a7a5d9d13153bcb571"
},
"files": [
"config/packages/dev/jms_serializer.yaml",
"config/packages/jms_serializer.yaml",
"config/packages/prod/jms_serializer.yaml"
"config/packages/nelmio_cors.yaml"
]
},
"knplabs/gaufrette": {
"version": "v0.8.3"
},
"knplabs/knp-menu": {
"version": "2.6.0"
},
"knplabs/knp-menu-bundle": {
"version": "v2.3.0"
},
"kriswallsmith/buzz": {
"version": "v0.16.1"
},
"monolog/monolog": {
"version": "1.25.3"
},
"nikic/php-parser": {
"version": "v4.3.0"
},
@@ -176,97 +142,51 @@
"ocramius/proxy-manager": {
"version": "2.5.1"
},
"paragonie/random_compat": {
"version": "v2.0.18"
},
"php": {
"version": "7.4"
},
"phpdocumentor/reflection-common": {
"version": "2.2.0"
},
"phpdocumentor/reflection-docblock": {
"version": "5.1.0"
},
"phpdocumentor/type-resolver": {
"version": "1.3.0"
},
"psr/cache": {
"version": "1.0.1"
},
"psr/container": {
"version": "1.0.0"
},
"psr/http-message": {
"version": "1.0.1"
"psr/event-dispatcher": {
"version": "1.0.0"
},
"psr/link": {
"version": "1.0.0"
},
"psr/log": {
"version": "1.1.2"
},
"ralouphie/getallheaders": {
"version": "3.0.3"
},
"sonata-project/admin-bundle": {
"version": "3.31",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "3.31",
"ref": "0e5931df1732e3dccfba42a20853049e5e9db6ae"
},
"files": [
"config/packages/sonata_admin.yaml",
"config/routes/sonata_admin.yaml",
"src/Admin/.gitignore"
]
},
"sonata-project/block-bundle": {
"version": "3.18.2"
},
"sonata-project/cache": {
"version": "2.0.1"
},
"sonata-project/core-bundle": {
"version": "3.9",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "master",
"version": "3.9",
"ref": "2f69bd1995730b73a5211a9707622fb25a925df7"
},
"files": [
"config/packages/sonata_core.yaml"
]
},
"sonata-project/datagrid-bundle": {
"version": "2.5.0"
},
"sonata-project/doctrine-extensions": {
"version": "1.5.1"
},
"sonata-project/doctrine-orm-admin-bundle": {
"version": "3.13.0"
},
"sonata-project/easy-extends-bundle": {
"version": "2.5.0"
},
"sonata-project/exporter": {
"version": "2.0.1"
},
"sonata-project/media-bundle": {
"version": "3.13",
"sensio/framework-extra-bundle": {
"version": "5.2",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.13",
"ref": "e25412e53b20827db07abb6f2aa0b8e4d26c284c"
"version": "5.2",
"ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b"
},
"files": [
"config/packages/sonata_media.yaml",
"config/routes/sonata_media.yaml",
"public/upload/media/.gitignore"
"config/packages/sensio_framework_extra.yaml"
]
},
"sonata-project/user-bundle": {
"version": "4.5.1"
},
"swiftmailer/swiftmailer": {
"version": "v6.2.3"
},
"symfony/asset": {
"version": "v4.4.2"
},
"symfony/browser-kit": {
"version": "v5.1.2"
},
"symfony/cache": {
"version": "v4.4.2"
},
@@ -289,15 +209,36 @@
"config/bootstrap.php"
]
},
"symfony/debug": {
"version": "v4.4.2"
"symfony/css-selector": {
"version": "v5.1.2"
},
"symfony/debug-bundle": {
"version": "4.1",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.1",
"ref": "f8863cbad2f2e58c4b65fa1eac892ab189971bea"
},
"files": [
"config/packages/dev/debug.yaml"
]
},
"symfony/debug-pack": {
"version": "v1.0.8"
},
"symfony/dependency-injection": {
"version": "v4.4.2"
},
"symfony/deprecation-contracts": {
"version": "v2.1.3"
},
"symfony/doctrine-bridge": {
"version": "v4.4.2"
},
"symfony/dom-crawler": {
"version": "v5.1.2"
},
"symfony/dotenv": {
"version": "v4.4.2"
},
@@ -354,6 +295,12 @@
"src/Kernel.php"
]
},
"symfony/http-client": {
"version": "v5.1.2"
},
"symfony/http-client-contracts": {
"version": "v2.1.3"
},
"symfony/http-foundation": {
"version": "v4.4.2"
},
@@ -366,6 +313,18 @@
"symfony/intl": {
"version": "v4.4.2"
},
"symfony/mailer": {
"version": "4.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.3",
"ref": "15658c2a0176cda2e7dba66276a2030b52bd81b2"
},
"files": [
"config/packages/mailer.yaml"
]
},
"symfony/maker-bundle": {
"version": "1.0",
"recipe": {
@@ -395,18 +354,51 @@
"config/packages/test/monolog.yaml"
]
},
"symfony/notifier": {
"version": "5.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.0",
"ref": "c31585e252b32fe0e1f30b1f256af553f4a06eb9"
},
"files": [
"config/packages/notifier.yaml"
]
},
"symfony/options-resolver": {
"version": "v4.4.2"
},
"symfony/orm-pack": {
"version": "v1.0.7"
},
"symfony/phpunit-bridge": {
"version": "4.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "4.3",
"ref": "6d0e35f749d5f4bfe1f011762875275cd3f9874f"
},
"files": [
".env.test",
"bin/phpunit",
"phpunit.xml.dist",
"tests/bootstrap.php"
]
},
"symfony/polyfill-intl-grapheme": {
"version": "v1.17.1"
},
"symfony/polyfill-intl-icu": {
"version": "v1.13.1"
},
"symfony/polyfill-intl-idn": {
"version": "v1.13.1"
},
"symfony/polyfill-intl-normalizer": {
"version": "v1.17.1"
},
"symfony/polyfill-mbstring": {
"version": "v1.13.1"
},
@@ -416,20 +408,20 @@
"symfony/polyfill-php73": {
"version": "v1.13.1"
},
"symfony/polyfill-php80": {
"version": "v1.17.1"
},
"symfony/process": {
"version": "v5.1.2"
},
"symfony/profiler-pack": {
"version": "v1.0.4"
},
"symfony/property-access": {
"version": "v4.4.2"
},
"symfony/requirements-checker": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "93d0ec48679f5e240d265088305c1ad775723f93"
}
"symfony/property-info": {
"version": "v5.1.2"
},
"symfony/routing": {
"version": "4.2",
@@ -445,9 +437,6 @@
"config/routes.yaml"
]
},
"symfony/security-acl": {
"version": "v3.0.4"
},
"symfony/security-bundle": {
"version": "4.4",
"recipe": {
@@ -472,28 +461,23 @@
"symfony/security-http": {
"version": "v4.4.2"
},
"symfony/serializer": {
"version": "v5.1.2"
},
"symfony/serializer-pack": {
"version": "v1.0.3"
},
"symfony/service-contracts": {
"version": "v2.0.1"
},
"symfony/stopwatch": {
"version": "v4.4.2"
},
"symfony/swiftmailer-bundle": {
"version": "2.5",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "2.5",
"ref": "ae4d22af30bbd484506bc1817c5a3ef72c855b93"
},
"files": [
"config/packages/dev/swiftmailer.yaml",
"config/packages/swiftmailer.yaml",
"config/packages/test/swiftmailer.yaml"
]
"symfony/string": {
"version": "v5.1.2"
},
"symfony/templating": {
"version": "v4.4.2"
"symfony/test-pack": {
"version": "v1.0.6"
},
"symfony/translation": {
"version": "3.3",
@@ -528,6 +512,9 @@
"templates/base.html.twig"
]
},
"symfony/twig-pack": {
"version": "v1.0.0"
},
"symfony/validator": {
"version": "4.3",
"recipe": {
@@ -547,6 +534,9 @@
"symfony/var-exporter": {
"version": "v5.0.2"
},
"symfony/web-link": {
"version": "v5.1.2"
},
"symfony/web-profiler-bundle": {
"version": "3.3",
"recipe": {
@@ -583,21 +573,21 @@
"symfony/yaml": {
"version": "v4.4.2"
},
"twig/extensions": {
"version": "1.0",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "1.0",
"ref": "a86723ee8d8b2f9437c8ce60a5546a1c267da5ed"
},
"files": [
"config/packages/twig_extensions.yaml"
]
"twig/extra-bundle": {
"version": "v3.0.4"
},
"twig/twig": {
"version": "v2.12.3"
},
"webimpress/safe-writer": {
"version": "2.0.1"
},
"webmozart/assert": {
"version": "1.9.0"
},
"willdurand/negotiation": {
"version": "v2.3.1"
},
"zendframework/zend-code": {
"version": "3.4.1"
},


+ 11
- 0
tests/bootstrap.php View File

@@ -0,0 +1,11 @@
<?php

use Symfony\Component\Dotenv\Dotenv;

require dirname(__DIR__).'/vendor/autoload.php';

if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
require dirname(__DIR__).'/config/bootstrap.php';
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}

Loading…
Cancel
Save