composer require security-bundle

This commit is contained in:
Alexey Skobkin 2018-06-23 18:00:37 +03:00
parent 11d89c8a10
commit bd23236efe
5 changed files with 197 additions and 1 deletions

View File

@ -22,6 +22,7 @@
"symfony/lts": "^4@dev",
"symfony/monolog-bundle": "^3.3",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "^4.1",
"symfony/serializer-pack": "^1.0",
"symfony/translation": "^4.1",
"symfony/twig-bundle": "^4.1",

160
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "16f2a34d0add203515fe657d6dcde23d",
"content-hash": "b6ca92cab0ca13436da7c0a3acde22ad",
"packages": [
{
"name": "doctrine/annotations",
@ -3163,6 +3163,164 @@
],
"time": "2018-05-30T07:26:09+00:00"
},
{
"name": "symfony/security",
"version": "v4.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/security.git",
"reference": "2ba804b4af205c060094c28cece0b42a26a67537"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/security/zipball/2ba804b4af205c060094c28cece0b42a26a67537",
"reference": "2ba804b4af205c060094c28cece0b42a26a67537",
"shasum": ""
},
"require": {
"php": "^7.1.3",
"symfony/event-dispatcher": "~3.4|~4.0",
"symfony/http-foundation": "~3.4|~4.0",
"symfony/http-kernel": "~3.4|~4.0",
"symfony/property-access": "~3.4|~4.0"
},
"replace": {
"symfony/security-core": "self.version",
"symfony/security-csrf": "self.version",
"symfony/security-guard": "self.version",
"symfony/security-http": "self.version"
},
"require-dev": {
"psr/container": "^1.0",
"psr/log": "~1.0",
"symfony/expression-language": "~3.4|~4.0",
"symfony/finder": "~3.4|~4.0",
"symfony/ldap": "~3.4|~4.0",
"symfony/polyfill-intl-icu": "~1.0",
"symfony/routing": "~3.4|~4.0",
"symfony/validator": "~3.4|~4.0"
},
"suggest": {
"psr/container-implementation": "To instantiate the Security class",
"symfony/expression-language": "For using the expression voter",
"symfony/form": "",
"symfony/ldap": "For using the LDAP user and authentication providers",
"symfony/routing": "For using the HttpUtils class to create sub-requests, redirect the user, and match URLs",
"symfony/validator": "For using the user password constraint"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\Security\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Security Component",
"homepage": "https://symfony.com",
"time": "2018-05-30T07:26:09+00:00"
},
{
"name": "symfony/security-bundle",
"version": "v4.1.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/security-bundle.git",
"reference": "8ac1bc3575a40eb57e0ed84f00bcb5964986945b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/security-bundle/zipball/8ac1bc3575a40eb57e0ed84f00bcb5964986945b",
"reference": "8ac1bc3575a40eb57e0ed84f00bcb5964986945b",
"shasum": ""
},
"require": {
"ext-xml": "*",
"php": "^7.1.3",
"symfony/dependency-injection": "^3.4.3|^4.0.3",
"symfony/http-kernel": "^4.1",
"symfony/security": "~4.1"
},
"conflict": {
"symfony/console": "<3.4",
"symfony/event-dispatcher": "<3.4",
"symfony/framework-bundle": "<=4.1-beta2",
"symfony/security": "4.1.0-beta1|4.1.0-beta2",
"symfony/var-dumper": "<3.4"
},
"require-dev": {
"doctrine/doctrine-bundle": "~1.5",
"symfony/asset": "~3.4|~4.0",
"symfony/browser-kit": "~3.4|~4.0",
"symfony/console": "~3.4|~4.0",
"symfony/css-selector": "~3.4|~4.0",
"symfony/dom-crawler": "~3.4|~4.0",
"symfony/event-dispatcher": "~3.4|~4.0",
"symfony/expression-language": "~3.4|~4.0",
"symfony/form": "~3.4|~4.0",
"symfony/framework-bundle": "~4.1",
"symfony/http-foundation": "~3.4|~4.0",
"symfony/process": "~3.4|~4.0",
"symfony/translation": "~3.4|~4.0",
"symfony/twig-bridge": "~3.4|~4.0",
"symfony/twig-bundle": "~3.4|~4.0",
"symfony/validator": "~3.4|~4.0",
"symfony/var-dumper": "~3.4|~4.0",
"symfony/yaml": "~3.4|~4.0",
"twig/twig": "~1.34|~2.4"
},
"type": "symfony-bundle",
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Bundle\\SecurityBundle\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony SecurityBundle",
"homepage": "https://symfony.com",
"time": "2018-05-25T13:53:35+00:00"
},
{
"name": "symfony/serializer",
"version": "v4.1.0",

View File

@ -11,4 +11,5 @@ return [
WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
];

View File

@ -0,0 +1,24 @@
security:
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
providers:
in_memory: { memory: ~ }
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: true
# activate different ways to authenticate
# http_basic: true
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
# form_login: true
# https://symfony.com/doc/current/security/form_login_setup.html
# 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 }

View File

@ -206,6 +206,18 @@
"ref": "cda8b550123383d25827705d05a42acf6819fe4e"
}
},
"symfony/security": {
"version": "v4.1.0"
},
"symfony/security-bundle": {
"version": "3.3",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "master",
"version": "3.3",
"ref": "f8a63faa0d9521526499c0a8f403c9964ecb0527"
}
},
"symfony/serializer": {
"version": "v4.1.0"
},