提交 3cc92913 编写于 作者: T teebbstudios

remove .dev infomation

上级 54f88976
......@@ -29,7 +29,7 @@ APP_SECRET=1e0a0e96d4ade8189745bcdd2946c25f
# 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&charset=utf8"
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
DATABASE_URL=mysql://root:4713056Qwwdezone!@127.0.0.1:3306/teebb_%kernel.environment%?serverVersion=5.7
DATABASE_URL=mysql://root:123456@127.0.0.1:3306/teebb_%kernel.environment%?serverVersion=5.7
###< doctrine/doctrine-bundle ###
###> nelmio/cors-bundle ###
......
此差异已折叠。
......@@ -21,4 +21,5 @@ return [
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
FOS\JsRoutingBundle\FOSJsRoutingBundle::class => ['all' => true],
BabDev\PagerfantaBundle\BabDevPagerfantaBundle::class => ['all' => true],
Knp\Bundle\TimeBundle\KnpTimeBundle::class => ['all' => true],
];
security:
encoders:
Teebb\CoreBundle\Entity\User:
algorithm: auto
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
users_in_memory: { memory: null }
user_provider:
entity:
class: Teebb\CoreBundle\Entity\User
property: username
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: lazy
provider: users_in_memory
provider: user_provider
logout:
path: teebb_user_logout
guard:
authenticators:
- Teebb\CoreBundle\Security\LoginFormAuthenticator
user_checker: Teebb\CoreBundle\Security\UserChecker
remember_me:
secret: '%kernel.secret%'
lifetime: 604800 # 7 days in seconds
# activate different ways to authenticate
# https://symfony.com/doc/current/security.html#firewalls-authentication
......@@ -19,5 +40,5 @@ security:
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
# - { path: ^/admin, roles: ROLE_ADMIN }
# - { path: ^/profile, roles: ROLE_USER }
......@@ -21,10 +21,17 @@ _teebb_taxonomy:
defaults:
entity_type_service: '%entity_type.taxonomy.service%'
_teebb_user:
resource: "@TeebbCoreBundle/Resources/config/routing/user.xml"
prefix: /admin
_teebb_file:
resource: "@TeebbCoreBundle/Resources/config/routing/file.xml"
prefix: /admin
_teebb_formatter:
resource: "@TeebbCoreBundle/Resources/config/routing/formatter.xml"
prefix: /admin
\ No newline at end of file
prefix: /admin
security:
resource: "@TeebbCoreBundle/Resources/config/routing/security.xml"
\ No newline at end of file
......@@ -137,9 +137,15 @@
"imagine/imagine": {
"version": "1.2.3"
},
"knplabs/knp-time-bundle": {
"version": "v1.13.0"
},
"league/flysystem": {
"version": "1.0.69"
},
"league/mime-type-detection": {
"version": "1.4.0"
},
"liip/imagine-bundle": {
"version": "1.8",
"recipe": {
......@@ -369,9 +375,6 @@
"symfony/http-kernel": {
"version": "v5.0.8"
},
"symfony/inflector": {
"version": "v5.0.8"
},
"symfony/intl": {
"version": "v5.0.8"
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册