提交 36764e44 编写于 作者: 伟伟权

0.1.10

上级 4fd464a8
......@@ -35,3 +35,9 @@ DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$
###< nelmio/cors-bundle ###
###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=semaphore
###< symfony/lock ###
......@@ -27,4 +27,8 @@ public/uploads/
###> liip/imagine-bundle ###
/public/media/cache/
###< liip/imagine-bundle ###
\ No newline at end of file
###< liip/imagine-bundle ###
###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
###< phpunit/phpunit ###
framework:
lock: '%env(LOCK_DSN)%'
......@@ -3,7 +3,10 @@ security:
Teebb\CoreBundle\Entity\User:
algorithm: auto
# https://symfony.com/doc/current/security/experimental_authenticators.html
enable_authenticator_manager: true
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
user_provider:
entity:
......@@ -15,18 +18,23 @@ security:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: lazy
lazy: true
provider: user_provider
logout:
path: teebb_user_logout
guard:
authenticators:
- Teebb\CoreBundle\Security\LoginFormAuthenticator
# 弃用,从symfony5.3版本起使用新的认证系统
# guard:
# authenticators:
# - Teebb\CoreBundle\Security\LoginFormAuthenticator
custom_authenticator: Teebb\CoreBundle\Security\AppLoginFormAuthenticator
user_checker: Teebb\CoreBundle\Security\UserChecker
login_throttling:
max_attempts: 3
remember_me:
secret: '%kernel.secret%'
lifetime: 604800 # 7 days in seconds
......
......@@ -46,6 +46,9 @@
"doctrine/dbal": {
"version": "2.10.2"
},
"doctrine/deprecations": {
"version": "v0.5.3"
},
"doctrine/doctrine-bundle": {
"version": "2.0",
"recipe": {
......@@ -186,6 +189,9 @@
"monolog/monolog": {
"version": "2.0.2"
},
"myclabs/deep-copy": {
"version": "1.10.2"
},
"nelmio/cors-bundle": {
"version": "1.5",
"recipe": {
......@@ -219,6 +225,12 @@
"pagerfanta/pagerfanta": {
"version": "v2.3.0"
},
"phar-io/manifest": {
"version": "2.0.3"
},
"phar-io/version": {
"version": "3.1.0"
},
"php": {
"version": "7.3"
},
......@@ -231,9 +243,41 @@
"phpdocumentor/type-resolver": {
"version": "1.1.0"
},
"phpspec/prophecy": {
"version": "1.13.0"
},
"phpstan/phpdoc-parser": {
"version": "0.4.10"
},
"phpunit/php-code-coverage": {
"version": "9.2.6"
},
"phpunit/php-file-iterator": {
"version": "3.0.5"
},
"phpunit/php-invoker": {
"version": "3.1.1"
},
"phpunit/php-text-template": {
"version": "2.0.4"
},
"phpunit/php-timer": {
"version": "5.0.3"
},
"phpunit/phpunit": {
"version": "9.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "9.3",
"ref": "a6249a6c4392e9169b87abf93225f7f9f59025e6"
},
"files": [
".env.test",
"phpunit.xml.dist",
"tests/bootstrap.php"
]
},
"psr/cache": {
"version": "1.0.1"
},
......@@ -249,6 +293,54 @@
"psr/log": {
"version": "1.1.3"
},
"sebastian/cli-parser": {
"version": "1.0.1"
},
"sebastian/code-unit": {
"version": "1.0.8"
},
"sebastian/code-unit-reverse-lookup": {
"version": "2.0.3"
},
"sebastian/comparator": {
"version": "4.0.6"
},
"sebastian/complexity": {
"version": "2.0.2"
},
"sebastian/diff": {
"version": "4.0.4"
},
"sebastian/environment": {
"version": "5.1.3"
},
"sebastian/exporter": {
"version": "4.0.3"
},
"sebastian/global-state": {
"version": "5.0.3"
},
"sebastian/lines-of-code": {
"version": "1.0.3"
},
"sebastian/object-enumerator": {
"version": "4.0.4"
},
"sebastian/object-reflector": {
"version": "2.0.4"
},
"sebastian/recursion-context": {
"version": "4.0.4"
},
"sebastian/resource-operations": {
"version": "3.0.3"
},
"sebastian/type": {
"version": "2.3.4"
},
"sebastian/version": {
"version": "3.0.2"
},
"sensio/framework-extra-bundle": {
"version": "5.2",
"recipe": {
......@@ -426,6 +518,18 @@
"symfony/intl": {
"version": "v5.0.8"
},
"symfony/lock": {
"version": "5.2",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "5.2",
"ref": "a1c8800e40ae735206bb14586fdd6c4630a51b8d"
},
"files": [
"config/packages/lock.yaml"
]
},
"symfony/mailer": {
"version": "4.3",
"recipe": {
......@@ -485,6 +589,9 @@
"symfony/orm-pack": {
"version": "v1.0.8"
},
"symfony/password-hasher": {
"version": "v5.3.4"
},
"symfony/phpunit-bridge": {
"version": "4.3",
"recipe": {
......@@ -521,6 +628,9 @@
"symfony/polyfill-php80": {
"version": "v1.18.0"
},
"symfony/polyfill-php81": {
"version": "v1.23.0"
},
"symfony/process": {
"version": "v5.0.8"
},
......@@ -533,6 +643,9 @@
"symfony/property-info": {
"version": "v5.0.8"
},
"symfony/rate-limiter": {
"version": "v5.3.4"
},
"symfony/routing": {
"version": "4.2",
"recipe": {
......@@ -670,6 +783,9 @@
"teebbstudios/core-bundle": {
"version": "0.1.0"
},
"theseer/tokenizer": {
"version": "1.2.1"
},
"twig/extra-bundle": {
"version": "v3.0.3"
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册