mirror of
https://framagit.org/tykayn/date-poll-api
synced 2023-08-25 08:23:11 +02:00
🎉 init all in symfony 4
This commit is contained in:
parent
7fcca42673
commit
96f57ef61f
8
.env
8
.env
@ -19,3 +19,11 @@ APP_SECRET=597b0529ac702d27dcb9089f7e69c362
|
|||||||
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
|
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
|
||||||
#TRUSTED_HOSTS='^localhost|example\.com$'
|
#TRUSTED_HOSTS='^localhost|example\.com$'
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
|
###> doctrine/doctrine-bundle ###
|
||||||
|
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
||||||
|
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
|
||||||
|
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11"
|
||||||
|
# IMPORTANT: You MUST also configure your db driver and server_version in config/packages/doctrine.yaml
|
||||||
|
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
|
||||||
|
###< doctrine/doctrine-bundle ###
|
||||||
|
2
.idea/.gitignore
generated
vendored
Normal file
2
.idea/.gitignore
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/workspace.xml
|
92
.idea/api.iml
generated
Normal file
92
.idea/api.iml
generated
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="WEB_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager">
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="App\Tests\" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="App\" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/annotations" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/cache" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/collections" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/common" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/dbal" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/doctrine-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/doctrine-cache-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/doctrine-migrations-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/event-manager" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/inflector" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/instantiator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/lexer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/migrations" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/orm" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/persistence" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/reflection" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/friendsofsymfony/rest-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/compiler" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/consistency" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/event" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/exception" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/file" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/iterator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/math" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/protocol" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/regex" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/stream" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/ustring" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/visitor" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/hoa/zformat" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jdorn/sql-formatter" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jms/metadata" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jms/serializer" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/jms/serializer-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/ocramius/package-versions" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/ocramius/proxy-manager" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/cache" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sensio/framework-extra-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/cache" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/cache-contracts" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/config" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/console" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/debug" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/dependency-injection" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/doctrine-bridge" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/dotenv" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/event-dispatcher-contracts" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/filesystem" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/finder" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/flex" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/form" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/framework-bundle" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-foundation" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/http-kernel" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/inflector" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/intl" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mime" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/options-resolver" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/orm-pack" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-icu" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-intl-idn" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php72" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php73" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/property-access" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/routing" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/security-core" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/service-contracts" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/stopwatch" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation-contracts" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/validator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/var-exporter" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/yaml" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/willdurand/jsonp-callback-validator" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/willdurand/negotiation" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/zendframework/zend-code" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/zendframework/zend-eventmanager" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
6
.idea/git_toolbox_prj.xml
generated
Normal file
6
.idea/git_toolbox_prj.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="GitToolBoxProjectSettings">
|
||||||
|
<option name="version" value="2" />
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/misc.xml
generated
Normal file
6
.idea/misc.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="JavaScriptSettings">
|
||||||
|
<option name="languageLevel" value="ES6" />
|
||||||
|
</component>
|
||||||
|
</project>
|
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/api.iml" filepath="$PROJECT_DIR$/.idea/api.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
89
.idea/php.xml
generated
Normal file
89
.idea/php.xml
generated
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PhpIncludePathManager">
|
||||||
|
<include_path>
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/cache" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/service-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/framework-bundle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php72" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/validator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/mime" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/form" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/psr/log" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/flex" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/options-resolver" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/property-access" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/console" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/doctrine-bridge" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-idn" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/filesystem" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/inflector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/stopwatch" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/debug" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/routing" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/intl" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/security-core" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-intl-icu" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/dependency-injection" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/cache-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php73" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/dbal" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/http-kernel" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/event-dispatcher-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/var-exporter" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/dotenv" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/orm" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/protocol" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jdorn/sql-formatter" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/zformat" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/file" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/exception" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/config" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/orm-pack" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/migrations" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/cache" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/iterator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/willdurand/negotiation" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/event" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/ustring" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/consistency" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/math" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/compiler" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/regex" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/visitor" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/willdurand/jsonp-callback-validator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/hoa/stream" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sensio/framework-extra-bundle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jms/serializer-bundle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/doctrine-bundle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jms/serializer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/event-manager" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/reflection" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/collections" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/ocramius/package-versions" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/cache" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/doctrine-migrations-bundle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/jms/metadata" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/lexer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/doctrine-cache-bundle" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/annotations" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/ocramius/proxy-manager" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/instantiator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/common" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/doctrine/persistence" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-code" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-eventmanager" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/friendsofsymfony/rest-bundle" />
|
||||||
|
</include_path>
|
||||||
|
</component>
|
||||||
|
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
|
||||||
|
</project>
|
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
@ -5,13 +5,19 @@
|
|||||||
"php": "^7.1.3",
|
"php": "^7.1.3",
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
|
"jms/serializer-bundle": "^3.4",
|
||||||
"symfony/console": "4.3.*",
|
"symfony/console": "4.3.*",
|
||||||
"symfony/dotenv": "4.3.*",
|
"symfony/dotenv": "4.3.*",
|
||||||
"symfony/flex": "^1.3.1",
|
"symfony/flex": "^1.3.1",
|
||||||
|
"symfony/form": "4.3.*",
|
||||||
"symfony/framework-bundle": "4.3.*",
|
"symfony/framework-bundle": "4.3.*",
|
||||||
|
"symfony/intl": "4.3.*",
|
||||||
|
"symfony/orm-pack": "^1.0",
|
||||||
|
"symfony/validator": "4.3.*",
|
||||||
"symfony/yaml": "4.3.*"
|
"symfony/yaml": "4.3.*"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"symfony/maker-bundle": "^1.14"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"preferred-install": {
|
"preferred-install": {
|
||||||
|
3658
composer.lock
generated
3658
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -2,4 +2,11 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
||||||
|
FOS\RestBundle\FOSRestBundle::class => ['all' => true],
|
||||||
|
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
||||||
|
JMS\SerializerBundle\JMSSerializerBundle::class => ['all' => true],
|
||||||
|
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
|
||||||
|
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
||||||
|
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
||||||
|
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||||
];
|
];
|
||||||
|
7
config/packages/dev/jms_serializer.yaml
Normal file
7
config/packages/dev/jms_serializer.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
jms_serializer:
|
||||||
|
visitors:
|
||||||
|
json_serialization:
|
||||||
|
options:
|
||||||
|
- JSON_PRETTY_PRINT
|
||||||
|
- JSON_UNESCAPED_SLASHES
|
||||||
|
- JSON_PRESERVE_ZERO_FRACTION
|
26
config/packages/doctrine.yaml
Normal file
26
config/packages/doctrine.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
doctrine:
|
||||||
|
dbal:
|
||||||
|
# configure these for your database server
|
||||||
|
# use postgresql for PostgreSQL
|
||||||
|
# use sqlite for SQLite
|
||||||
|
driver: 'mysql'
|
||||||
|
server_version: '5.7'
|
||||||
|
|
||||||
|
# only needed for MySQL
|
||||||
|
charset: utf8mb4
|
||||||
|
default_table_options:
|
||||||
|
charset: utf8mb4
|
||||||
|
collate: utf8mb4_unicode_ci
|
||||||
|
|
||||||
|
url: '%env(resolve:DATABASE_URL)%'
|
||||||
|
orm:
|
||||||
|
auto_generate_proxy_classes: true
|
||||||
|
naming_strategy: doctrine.orm.naming_strategy.underscore
|
||||||
|
auto_mapping: true
|
||||||
|
mappings:
|
||||||
|
App:
|
||||||
|
is_bundle: false
|
||||||
|
type: annotation
|
||||||
|
dir: '%kernel.project_dir%/src/Entity'
|
||||||
|
prefix: 'App\Entity'
|
||||||
|
alias: App
|
5
config/packages/doctrine_migrations.yaml
Normal file
5
config/packages/doctrine_migrations.yaml
Normal file
@ -0,0 +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
|
15
config/packages/fos_rest.yaml
Normal file
15
config/packages/fos_rest.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
|
||||||
|
fos_rest: null
|
||||||
|
# param_fetcher_listener: true
|
||||||
|
# allowed_methods_listener: true
|
||||||
|
# routing_loader: true
|
||||||
|
# view:
|
||||||
|
# view_response_listener: true
|
||||||
|
# exception:
|
||||||
|
# codes:
|
||||||
|
# App\Exception\MyException: 403
|
||||||
|
# messages:
|
||||||
|
# App\Exception\MyException: Forbidden area.
|
||||||
|
# format_listener:
|
||||||
|
# rules:
|
||||||
|
# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }
|
13
config/packages/jms_serializer.yaml
Normal file
13
config/packages/jms_serializer.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
jms_serializer:
|
||||||
|
visitors:
|
||||||
|
xml_serialization:
|
||||||
|
format_output: '%kernel.debug%'
|
||||||
|
# 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"
|
32
config/packages/prod/doctrine.yaml
Normal file
32
config/packages/prod/doctrine.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
doctrine:
|
||||||
|
orm:
|
||||||
|
auto_generate_proxy_classes: false
|
||||||
|
metadata_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: doctrine.system_cache_provider
|
||||||
|
query_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: doctrine.system_cache_provider
|
||||||
|
result_cache_driver:
|
||||||
|
type: service
|
||||||
|
id: doctrine.result_cache_provider
|
||||||
|
|
||||||
|
services:
|
||||||
|
doctrine.result_cache_provider:
|
||||||
|
class: Symfony\Component\Cache\DoctrineProvider
|
||||||
|
public: false
|
||||||
|
arguments:
|
||||||
|
- '@doctrine.result_cache_pool'
|
||||||
|
doctrine.system_cache_provider:
|
||||||
|
class: Symfony\Component\Cache\DoctrineProvider
|
||||||
|
public: false
|
||||||
|
arguments:
|
||||||
|
- '@doctrine.system_cache_pool'
|
||||||
|
|
||||||
|
framework:
|
||||||
|
cache:
|
||||||
|
pools:
|
||||||
|
doctrine.result_cache_pool:
|
||||||
|
adapter: cache.app
|
||||||
|
doctrine.system_cache_pool:
|
||||||
|
adapter: cache.system
|
6
config/packages/prod/jms_serializer.yaml
Normal file
6
config/packages/prod/jms_serializer.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
jms_serializer:
|
||||||
|
visitors:
|
||||||
|
json_serialization:
|
||||||
|
options:
|
||||||
|
- JSON_UNESCAPED_SLASHES
|
||||||
|
- JSON_PRESERVE_ZERO_FRACTION
|
3
config/packages/sensio_framework_extra.yaml
Normal file
3
config/packages/sensio_framework_extra.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
sensio_framework_extra:
|
||||||
|
router:
|
||||||
|
annotations: false
|
3
config/packages/test/validator.yaml
Normal file
3
config/packages/test/validator.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
framework:
|
||||||
|
validation:
|
||||||
|
not_compromised_password: false
|
8
config/packages/validator.yaml
Normal file
8
config/packages/validator.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
framework:
|
||||||
|
validation:
|
||||||
|
email_validation_mode: html5
|
||||||
|
|
||||||
|
# Enables validator auto-mapping support.
|
||||||
|
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
|
||||||
|
#auto_mapping:
|
||||||
|
# App\Entity\: []
|
3
config/routes/annotations.yaml
Normal file
3
config/routes/annotations.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
controllers:
|
||||||
|
resource: ../../src/Controller/
|
||||||
|
type: annotation
|
0
src/Entity/.gitignore
vendored
Normal file
0
src/Entity/.gitignore
vendored
Normal file
0
src/Migrations/.gitignore
vendored
Normal file
0
src/Migrations/.gitignore
vendored
Normal file
0
src/Repository/.gitignore
vendored
Normal file
0
src/Repository/.gitignore
vendored
Normal file
241
symfony.lock
241
symfony.lock
@ -1,4 +1,166 @@
|
|||||||
{
|
{
|
||||||
|
"doctrine/annotations": {
|
||||||
|
"version": "1.0",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "1.0",
|
||||||
|
"ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/routes/annotations.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"doctrine/cache": {
|
||||||
|
"version": "v1.8.0"
|
||||||
|
},
|
||||||
|
"doctrine/collections": {
|
||||||
|
"version": "v1.6.2"
|
||||||
|
},
|
||||||
|
"doctrine/common": {
|
||||||
|
"version": "v2.11.0"
|
||||||
|
},
|
||||||
|
"doctrine/dbal": {
|
||||||
|
"version": "v2.9.2"
|
||||||
|
},
|
||||||
|
"doctrine/doctrine-bundle": {
|
||||||
|
"version": "1.6",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "1.6",
|
||||||
|
"ref": "05802762c395b1e9f0f2645ebbd6128a87942f09"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/doctrine.yaml",
|
||||||
|
"config/packages/prod/doctrine.yaml",
|
||||||
|
"src/Entity/.gitignore",
|
||||||
|
"src/Repository/.gitignore"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"doctrine/doctrine-cache-bundle": {
|
||||||
|
"version": "1.3.5"
|
||||||
|
},
|
||||||
|
"doctrine/doctrine-migrations-bundle": {
|
||||||
|
"version": "1.2",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "1.2",
|
||||||
|
"ref": "c1431086fec31f17fbcfe6d6d7e92059458facc1"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/doctrine_migrations.yaml",
|
||||||
|
"src/Migrations/.gitignore"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"doctrine/event-manager": {
|
||||||
|
"version": "v1.0.0"
|
||||||
|
},
|
||||||
|
"doctrine/inflector": {
|
||||||
|
"version": "v1.3.0"
|
||||||
|
},
|
||||||
|
"doctrine/instantiator": {
|
||||||
|
"version": "1.2.0"
|
||||||
|
},
|
||||||
|
"doctrine/lexer": {
|
||||||
|
"version": "1.1.0"
|
||||||
|
},
|
||||||
|
"doctrine/migrations": {
|
||||||
|
"version": "2.1.1"
|
||||||
|
},
|
||||||
|
"doctrine/orm": {
|
||||||
|
"version": "v2.6.4"
|
||||||
|
},
|
||||||
|
"doctrine/persistence": {
|
||||||
|
"version": "1.1.1"
|
||||||
|
},
|
||||||
|
"doctrine/reflection": {
|
||||||
|
"version": "v1.0.0"
|
||||||
|
},
|
||||||
|
"friendsofsymfony/rest-bundle": {
|
||||||
|
"version": "2.2",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes-contrib",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "2.2",
|
||||||
|
"ref": "cad41ef93d6150067ae2bb3c7fd729492dff6f0a"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/fos_rest.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"jdorn/sql-formatter": {
|
||||||
|
"version": "v1.2.17"
|
||||||
|
},
|
||||||
|
"jms/metadata": {
|
||||||
|
"version": "2.1.0"
|
||||||
|
},
|
||||||
|
"jms/serializer": {
|
||||||
|
"version": "3.3.0"
|
||||||
|
},
|
||||||
|
"jms/serializer-bundle": {
|
||||||
|
"version": "3.0",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes-contrib",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "3.0",
|
||||||
|
"ref": "384cec52df45f3bfd46a09930d6960a58872b268"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/dev/jms_serializer.yaml",
|
||||||
|
"config/packages/jms_serializer.yaml",
|
||||||
|
"config/packages/prod/jms_serializer.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nikic/php-parser": {
|
||||||
|
"version": "v4.2.4"
|
||||||
|
},
|
||||||
|
"ocramius/package-versions": {
|
||||||
|
"version": "1.4.0"
|
||||||
|
},
|
||||||
|
"ocramius/proxy-manager": {
|
||||||
|
"version": "2.2.3"
|
||||||
|
},
|
||||||
"psr/cache": {
|
"psr/cache": {
|
||||||
"version": "1.0.1"
|
"version": "1.0.1"
|
||||||
},
|
},
|
||||||
@ -8,6 +170,18 @@
|
|||||||
"psr/log": {
|
"psr/log": {
|
||||||
"version": "1.1.0"
|
"version": "1.1.0"
|
||||||
},
|
},
|
||||||
|
"sensio/framework-extra-bundle": {
|
||||||
|
"version": "5.2",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "5.2",
|
||||||
|
"ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/sensio_framework_extra.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
"symfony/cache": {
|
"symfony/cache": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
},
|
},
|
||||||
@ -36,6 +210,9 @@
|
|||||||
"symfony/dependency-injection": {
|
"symfony/dependency-injection": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
},
|
},
|
||||||
|
"symfony/doctrine-bridge": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
"symfony/dotenv": {
|
"symfony/dotenv": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
},
|
},
|
||||||
@ -63,6 +240,9 @@
|
|||||||
".env"
|
".env"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"symfony/form": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
"symfony/framework-bundle": {
|
"symfony/framework-bundle": {
|
||||||
"version": "4.2",
|
"version": "4.2",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
@ -88,9 +268,33 @@
|
|||||||
"symfony/http-kernel": {
|
"symfony/http-kernel": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
},
|
},
|
||||||
|
"symfony/inflector": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
|
"symfony/intl": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
|
"symfony/maker-bundle": {
|
||||||
|
"version": "1.0",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "1.0",
|
||||||
|
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
|
||||||
|
}
|
||||||
|
},
|
||||||
"symfony/mime": {
|
"symfony/mime": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
},
|
},
|
||||||
|
"symfony/options-resolver": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
|
"symfony/orm-pack": {
|
||||||
|
"version": "v1.0.7"
|
||||||
|
},
|
||||||
|
"symfony/polyfill-intl-icu": {
|
||||||
|
"version": "v1.12.0"
|
||||||
|
},
|
||||||
"symfony/polyfill-intl-idn": {
|
"symfony/polyfill-intl-idn": {
|
||||||
"version": "v1.12.0"
|
"version": "v1.12.0"
|
||||||
},
|
},
|
||||||
@ -103,6 +307,9 @@
|
|||||||
"symfony/polyfill-php73": {
|
"symfony/polyfill-php73": {
|
||||||
"version": "v1.12.0"
|
"version": "v1.12.0"
|
||||||
},
|
},
|
||||||
|
"symfony/property-access": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
"symfony/routing": {
|
"symfony/routing": {
|
||||||
"version": "4.2",
|
"version": "4.2",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
@ -117,13 +324,47 @@
|
|||||||
"config/routes.yaml"
|
"config/routes.yaml"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"symfony/security-core": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
"symfony/service-contracts": {
|
"symfony/service-contracts": {
|
||||||
"version": "v1.1.7"
|
"version": "v1.1.7"
|
||||||
},
|
},
|
||||||
|
"symfony/stopwatch": {
|
||||||
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
|
"symfony/translation-contracts": {
|
||||||
|
"version": "v1.1.7"
|
||||||
|
},
|
||||||
|
"symfony/validator": {
|
||||||
|
"version": "4.3",
|
||||||
|
"recipe": {
|
||||||
|
"repo": "github.com/symfony/recipes",
|
||||||
|
"branch": "master",
|
||||||
|
"version": "4.3",
|
||||||
|
"ref": "d902da3e4952f18d3bf05aab29512eb61cabd869"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"config/packages/test/validator.yaml",
|
||||||
|
"config/packages/validator.yaml"
|
||||||
|
]
|
||||||
|
},
|
||||||
"symfony/var-exporter": {
|
"symfony/var-exporter": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
},
|
},
|
||||||
"symfony/yaml": {
|
"symfony/yaml": {
|
||||||
"version": "v4.3.5"
|
"version": "v4.3.5"
|
||||||
|
},
|
||||||
|
"willdurand/jsonp-callback-validator": {
|
||||||
|
"version": "v1.1.0"
|
||||||
|
},
|
||||||
|
"willdurand/negotiation": {
|
||||||
|
"version": "v2.3.1"
|
||||||
|
},
|
||||||
|
"zendframework/zend-code": {
|
||||||
|
"version": "3.4.0"
|
||||||
|
},
|
||||||
|
"zendframework/zend-eventmanager": {
|
||||||
|
"version": "3.2.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user