Add symfony/orm-pack
This commit is contained in:
parent
83cebc80c0
commit
847efa466a
|
@ -24,3 +24,10 @@ TWITTER_CONSUMER_KEY=
|
|||
TWITTER_CONSUMER_SECRET=
|
||||
TWITTER_ACCESS_TOKEN=
|
||||
TWITTER_ACCESS_SECRET=
|
||||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
# Format described at http://docs.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"
|
||||
# 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 ###
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
"symfony/dotenv": "4.2.*",
|
||||
"symfony/flex": "^1.1",
|
||||
"symfony/framework-bundle": "4.2.*",
|
||||
"symfony/orm-pack": "^1.0",
|
||||
"symfony/yaml": "4.2.*",
|
||||
"tightenco/collect": "^5.7"
|
||||
},
|
||||
|
|
1585
composer.lock
generated
1585
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -3,4 +3,7 @@
|
|||
return [
|
||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
|
||||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
||||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
||||
];
|
||||
|
|
29
config/packages/doctrine.yaml
Normal file
29
config/packages/doctrine.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
parameters:
|
||||
# Adds a fallback DATABASE_URL if the env var is not set.
|
||||
# This allows you to run cache:warmup even if your
|
||||
# environment variables are not available yet.
|
||||
# You should not need to change this value.
|
||||
env(DATABASE_URL): ''
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
# configure these for your database server
|
||||
driver: 'pdo_mysql'
|
||||
server_version: '5.7'
|
||||
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
|
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
|
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
84
symfony.lock
84
symfony.lock
|
@ -2,9 +2,75 @@
|
|||
"composer/installers": {
|
||||
"version": "v1.6.0"
|
||||
},
|
||||
"doctrine/annotations": {
|
||||
"version": "1.0",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "1.0",
|
||||
"ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672"
|
||||
}
|
||||
},
|
||||
"doctrine/cache": {
|
||||
"version": "v1.8.0"
|
||||
},
|
||||
"doctrine/collections": {
|
||||
"version": "v1.5.0"
|
||||
},
|
||||
"doctrine/common": {
|
||||
"version": "v2.10.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": "453e89b78ded666f351617baca5ae40d20622351"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"doctrine/event-manager": {
|
||||
"version": "v1.0.0"
|
||||
},
|
||||
"doctrine/inflector": {
|
||||
"version": "v1.3.0"
|
||||
},
|
||||
"doctrine/instantiator": {
|
||||
"version": "1.1.0"
|
||||
},
|
||||
"doctrine/lexer": {
|
||||
"version": "v1.0.1"
|
||||
},
|
||||
"doctrine/migrations": {
|
||||
"version": "v1.8.1"
|
||||
},
|
||||
"doctrine/orm": {
|
||||
"version": "v2.6.3"
|
||||
},
|
||||
"doctrine/persistence": {
|
||||
"version": "v1.1.0"
|
||||
},
|
||||
"doctrine/reflection": {
|
||||
"version": "v1.0.0"
|
||||
},
|
||||
"jdorn/sql-formatter": {
|
||||
"version": "v1.2.17"
|
||||
},
|
||||
"josephlavin/tap": {
|
||||
"version": "v1.0.0"
|
||||
},
|
||||
|
@ -14,6 +80,12 @@
|
|||
"nikic/php-parser": {
|
||||
"version": "v4.1.1"
|
||||
},
|
||||
"ocramius/package-versions": {
|
||||
"version": "1.3.0"
|
||||
},
|
||||
"ocramius/proxy-manager": {
|
||||
"version": "2.2.2"
|
||||
},
|
||||
"psr/cache": {
|
||||
"version": "1.0.1"
|
||||
},
|
||||
|
@ -50,6 +122,9 @@
|
|||
"symfony/dependency-injection": {
|
||||
"version": "v4.2.1"
|
||||
},
|
||||
"symfony/doctrine-bridge": {
|
||||
"version": "v4.2.2"
|
||||
},
|
||||
"symfony/dotenv": {
|
||||
"version": "v4.2.1"
|
||||
},
|
||||
|
@ -95,6 +170,9 @@
|
|||
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
|
||||
}
|
||||
},
|
||||
"symfony/orm-pack": {
|
||||
"version": "v1.0.5"
|
||||
},
|
||||
"symfony/polyfill-mbstring": {
|
||||
"version": "v1.10.0"
|
||||
},
|
||||
|
@ -121,5 +199,11 @@
|
|||
},
|
||||
"tightenco/collect": {
|
||||
"version": "v5.7.20"
|
||||
},
|
||||
"zendframework/zend-code": {
|
||||
"version": "3.3.1"
|
||||
},
|
||||
"zendframework/zend-eventmanager": {
|
||||
"version": "3.2.1"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue