Commit 83248460 by Julien Jorry

Update monolog conf + BO : user/presta/adherent admin simplify

parent f6557a8f
127.0.0.1 - - [30/Nov/2018:19:54:38 +0100] "GET / HTTP/1.1" 403 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:54:40 +0100] "GET /favicon.ico HTTP/1.1" 403 220 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:00 +0100] "GET / HTTP/1.1" 404 49152 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:01 +0100] "GET /_wdt/40eff0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:02 +0100] "GET /_wdt/40eff0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:02 +0100] "GET /favicon.ico HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:03 +0100] "GET /_wdt/40eff0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:04 +0100] "GET /_wdt/40eff0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:05 +0100] "GET /_wdt/40eff0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:06 +0100] "GET /admin HTTP/1.1" 404 203 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:09 +0100] "GET /admin/ HTTP/1.1" 404 204 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:12 +0100] "GET /admin/ogin HTTP/1.1" 404 208 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:16 +0100] "GET /admin/login HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:56:30 +0100] "GET /admin/login HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:21 +0100] "GET /admin/login HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:23 +0100] "GET /admin/login HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:24 +0100] "GET /favicon.ico HTTP/1.1" 404 209 "http://doume.test/admin/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:25 +0100] "GET / HTTP/1.1" 404 49152 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:26 +0100] "GET /_wdt/22cf0e HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:27 +0100] "GET /_wdt/22cf0e HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:28 +0100] "GET /_wdt/22cf0e HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:29 +0100] "GET /_wdt/22cf0e HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:57:30 +0100] "GET /_wdt/22cf0e HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:58:27 +0100] "GET /admin/login HTTP/1.1" 404 209 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:58:29 +0100] "GET /favicon.ico HTTP/1.1" 404 209 "http://www.doume.test/admin/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:58:30 +0100] "GET /admin/ HTTP/1.1" 404 204 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:58:57 +0100] "GET /admina/ HTTP/1.1" 404 205 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:19:58:59 +0100] "GET /admin/ HTTP/1.1" 404 204 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:42:09 +0100] "GET /admin HTTP/1.1" 404 203 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:42:11 +0100] "GET /favicon.ico HTTP/1.1" 404 209 "http://doume.test/admin" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:42:11 +0100] "GET /admin/ HTTP/1.1" 404 204 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:42:14 +0100] "GET /admin/dashboard HTTP/1.1" 404 213 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:00 +0100] "GET / HTTP/1.1" 404 49152 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:00 +0100] "GET /_wdt/b3fbae HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:02 +0100] "GET /_wdt/b3fbae HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:03 +0100] "GET /_wdt/b3fbae HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:04 +0100] "GET /_wdt/b3fbae HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:05 +0100] "GET /_wdt/b3fbae HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:20 +0100] "GET / HTTP/1.1" 404 49152 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:20 +0100] "GET /_wdt/82058d HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:21 +0100] "GET /_wdt/82058d HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:22 +0100] "GET /_wdt/82058d HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:23 +0100] "GET /_wdt/82058d HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:43:24 +0100] "GET /_wdt/82058d HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:03 +0100] "GET / HTTP/1.1" 404 49152 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:04 +0100] "GET /_wdt/a9b7b0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:05 +0100] "GET /favicon.ico HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:05 +0100] "GET /_wdt/a9b7b0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:06 +0100] "GET /_wdt/a9b7b0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:07 +0100] "GET /_wdt/a9b7b0 HTTP/1.1" 404 209 "http://doume.test/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:08 +0100] "GET /admin/ HTTP/1.1" 404 204 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
127.0.0.1 - - [30/Nov/2018:20:44:31 +0100] "GET /admin/ HTTP/1.1" 404 204 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36"
[Fri Nov 30 19:54:38.362098 2018] [authz_core:error] [pid 68481] [client 127.0.0.1:55323] AH01630: client denied by server configuration: /Users/julien/Desktop/DOUME/ledellin/public/
[Fri Nov 30 19:54:40.626560 2018] [authz_core:error] [pid 68481] [client 127.0.0.1:55323] AH01630: client denied by server configuration: /Users/julien/Desktop/DOUME/ledellin/public/favicon.ico, referer: http://doume.test/
......@@ -2200,26 +2200,26 @@
},
{
"name": "knplabs/gaufrette",
"version": "v0.7.0",
"version": "v0.8.0",
"source": {
"type": "git",
"url": "https://github.com/KnpLabs/Gaufrette.git",
"reference": "a0627e91e8753f442eea6560cb347151cd306b2c"
"reference": "1f7c4bf5fa603d9396ba812cf3171713adc7b394"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/KnpLabs/Gaufrette/zipball/a0627e91e8753f442eea6560cb347151cd306b2c",
"reference": "a0627e91e8753f442eea6560cb347151cd306b2c",
"url": "https://api.github.com/repos/KnpLabs/Gaufrette/zipball/1f7c4bf5fa603d9396ba812cf3171713adc7b394",
"reference": "1f7c4bf5fa603d9396ba812cf3171713adc7b394",
"shasum": ""
},
"require": {
"php": ">=5.6"
"php": ">=7.1"
},
"conflict": {
"microsoft/windowsazure": "<0.4.3"
},
"require-dev": {
"akeneo/phpspec-skip-example-extension": "~1.2",
"akeneo/phpspec-skip-example-extension": "^4.0",
"amazonwebservices/aws-sdk-for-php": "1.5.*",
"aws/aws-sdk-php": "^2.4.12||~3",
"doctrine/dbal": ">=2.3",
......@@ -2230,8 +2230,8 @@
"mikey179/vfsstream": "~1.2.0",
"mongodb/mongodb": "^1.1",
"phpseclib/phpseclib": "^2.0",
"phpspec/phpspec": "~2.4",
"phpunit/phpunit": "^5.6.8",
"phpspec/phpspec": "~5.1",
"phpunit/phpunit": "~7.5",
"rackspace/php-opencloud": "^1.9.2"
},
"suggest": {
......@@ -2255,7 +2255,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "0.7.x-dev"
"dev-master": "0.9.x-dev"
}
},
"autoload": {
......@@ -2285,7 +2285,7 @@
"filesystem",
"media"
],
"time": "2018-08-30T13:26:15+00:00"
"time": "2018-12-21T14:09:42+00:00"
},
{
"name": "knplabs/knp-components",
......@@ -3677,23 +3677,23 @@
},
{
"name": "sonata-project/admin-bundle",
"version": "3.43.0",
"version": "3.44.0",
"source": {
"type": "git",
"url": "https://github.com/sonata-project/SonataAdminBundle.git",
"reference": "b99bb34572bebcaae26bce075f5d2d7c52b96d38"
"reference": "932b206f80851cc0280835153cf8f1d6ef8a18fb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sonata-project/SonataAdminBundle/zipball/b99bb34572bebcaae26bce075f5d2d7c52b96d38",
"reference": "b99bb34572bebcaae26bce075f5d2d7c52b96d38",
"url": "https://api.github.com/repos/sonata-project/SonataAdminBundle/zipball/932b206f80851cc0280835153cf8f1d6ef8a18fb",
"reference": "932b206f80851cc0280835153cf8f1d6ef8a18fb",
"shasum": ""
},
"require": {
"doctrine/common": "^2.7",
"doctrine/inflector": "^1.1",
"knplabs/knp-menu-bundle": "^2.2",
"php": "^5.6 || ^7.0",
"php": "^7.1",
"sonata-project/block-bundle": "^3.11",
"sonata-project/core-bundle": "^3.9",
"sonata-project/exporter": "^1.8",
......@@ -3730,12 +3730,12 @@
"require-dev": {
"jms/di-extra-bundle": "^1.9",
"jms/translation-bundle": "^1.4",
"matthiasnoback/symfony-dependency-injection-test": "^1.1",
"matthiasnoback/symfony-dependency-injection-test": "^3.1",
"sensio/generator-bundle": "^3.1",
"sonata-project/intl-bundle": "^2.4",
"symfony/class-loader": "^2.8 || ^3.2",
"symfony/filesystem": "^2.8 || ^3.2 || ^4.0",
"symfony/phpunit-bridge": "^4.0",
"symfony/phpunit-bridge": "^4.2",
"symfony/yaml": "^2.8 || ^3.2 || ^4.0"
},
"suggest": {
......@@ -3778,27 +3778,28 @@
"bootstrap",
"sonata"
],
"time": "2018-12-15T19:53:13+00:00"
"time": "2019-01-12T12:03:17+00:00"
},
{
"name": "sonata-project/block-bundle",
"version": "3.13.0",
"version": "3.14.0",
"source": {
"type": "git",
"url": "https://github.com/sonata-project/SonataBlockBundle.git",
"reference": "72f1a2f5b0b5c996c7b924f60e1018382e9a7a67"
"reference": "57cba96c3be3796e4daceba34557fb4c3b136735"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sonata-project/SonataBlockBundle/zipball/72f1a2f5b0b5c996c7b924f60e1018382e9a7a67",
"reference": "72f1a2f5b0b5c996c7b924f60e1018382e9a7a67",
"url": "https://api.github.com/repos/sonata-project/SonataBlockBundle/zipball/57cba96c3be3796e4daceba34557fb4c3b136735",
"reference": "57cba96c3be3796e4daceba34557fb4c3b136735",
"shasum": ""
},
"require": {
"doctrine/common": "^2.3",
"php": "^5.6 || ^7.0",
"php": "^7.1",
"sonata-project/cache": "^1.0 || ^2.0",
"sonata-project/core-bundle": "^3.4",
"sonata-project/core-bundle": "^3.13.7",
"sonata-project/doctrine-extensions": "^1.1",
"symfony/asset": "^2.8 || ^3.2 || ^4.0",
"symfony/config": "^2.8 || ^3.2 || ^4.0",
"symfony/console": "^2.8 || ^3.2 || ^4.0",
......@@ -3821,7 +3822,7 @@
"knplabs/knp-menu-bundle": "^2.0",
"sonata-project/admin-bundle": "^3.22",
"symfony/debug": "^2.8 || ^3.2 || ^4.0",
"symfony/phpunit-bridge": "^4.0",
"symfony/phpunit-bridge": "^4.2",
"symfony/stopwatch": "^2.8 || ^3.2 || ^4.0"
},
"suggest": {
......@@ -3864,7 +3865,7 @@
"block",
"sonata"
],
"time": "2018-12-03T18:54:54+00:00"
"time": "2019-01-12T13:04:26+00:00"
},
{
"name": "sonata-project/cache",
......@@ -3937,27 +3938,27 @@
},
{
"name": "sonata-project/core-bundle",
"version": "3.13.7",
"version": "3.14.0",
"source": {
"type": "git",
"url": "https://github.com/sonata-project/SonataCoreBundle.git",
"reference": "8c9fb61c8a1e93ffb49d689cdccb9f5a536dd376"
"reference": "d1b6800485b98eb40ef3d8bb039b77e8bf0beb03"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sonata-project/SonataCoreBundle/zipball/8c9fb61c8a1e93ffb49d689cdccb9f5a536dd376",
"reference": "8c9fb61c8a1e93ffb49d689cdccb9f5a536dd376",
"url": "https://api.github.com/repos/sonata-project/SonataCoreBundle/zipball/d1b6800485b98eb40ef3d8bb039b77e8bf0beb03",
"reference": "d1b6800485b98eb40ef3d8bb039b77e8bf0beb03",
"shasum": ""
},
"require": {
"cocur/slugify": "^1.4 || ^2.0 || ^3.0",
"php": "^5.6 || ^7.0",
"php": "^7.1",
"sonata-project/datagrid-bundle": "^2.0",
"sonata-project/doctrine-extensions": "^1.1",
"symfony/config": "^2.8 || ^3.2 || ^4.0",
"symfony/dependency-injection": "^2.8 || ^3.2 || ^4.0",
"symfony/event-dispatcher": "^2.8 || ^3.2 || ^4.0",
"symfony/form": "^2.8 || ^3.2 || ^4.0",
"symfony/form": "^2.8.18 || ^3.2.6 || ^4.0",
"symfony/framework-bundle": "^2.8 || ^3.2 || ^4.0",
"symfony/http-foundation": "^2.8 || ^3.2 || ^4.0",
"symfony/http-kernel": "^2.8 || ^3.2 || ^4.0",
......@@ -3970,16 +3971,19 @@
"twig/extensions": "^1.5",
"twig/twig": "^1.34 || ^2.0"
},
"conflict": {
"sonata-project/exporter": "< 1.11.0"
},
"require-dev": {
"doctrine/orm": "^2.4",
"doctrine/phpcr-odm": "^1.0",
"jackalope/jackalope-doctrine-dbal": "^1.0",
"jms/serializer-bundle": "^1.0 || ^2.0",
"matthiasnoback/symfony-config-test": "^2.1",
"matthiasnoback/symfony-dependency-injection-test": "^1.1",
"matthiasnoback/symfony-config-test": "^4.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.1",
"nelmio/api-doc-bundle": "^2.11",
"sonata-project/exporter": "^1.3",
"symfony/phpunit-bridge": "^4.0"
"sonata-project/exporter": "^1.11.0 || ^2.0",
"symfony/phpunit-bridge": "^4.2"
},
"type": "symfony-bundle",
"extra": {
......@@ -4014,7 +4018,7 @@
"keywords": [
"sonata"
],
"time": "2018-12-20T13:12:20+00:00"
"time": "2019-01-13T14:19:40+00:00"
},
{
"name": "sonata-project/datagrid-bundle",
......@@ -4289,16 +4293,16 @@
},
{
"name": "sonata-project/exporter",
"version": "1.10.0",
"version": "1.11.0",
"source": {
"type": "git",
"url": "https://github.com/sonata-project/exporter.git",
"reference": "ae56d1157c3722a438b2ea26dc19a267068a5fca"
"reference": "63d1199e802ff8af2826d8410080093f949dcb92"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sonata-project/exporter/zipball/ae56d1157c3722a438b2ea26dc19a267068a5fca",
"reference": "ae56d1157c3722a438b2ea26dc19a267068a5fca",
"url": "https://api.github.com/repos/sonata-project/exporter/zipball/63d1199e802ff8af2826d8410080093f949dcb92",
"reference": "63d1199e802ff8af2826d8410080093f949dcb92",
"shasum": ""
},
"require": {
......@@ -4332,7 +4336,8 @@
},
"autoload": {
"psr-4": {
"Exporter\\": "src/"
"Exporter\\": "aliases/",
"Sonata\\Exporter\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
......@@ -4355,40 +4360,40 @@
"export",
"xls"
],
"time": "2018-12-11T21:05:21+00:00"
"time": "2019-01-10T19:05:17+00:00"
},
{
"name": "sonata-project/media-bundle",
"version": "3.16.3",
"version": "3.17.1",
"source": {
"type": "git",
"url": "https://github.com/sonata-project/SonataMediaBundle.git",
"reference": "064ef598de99bb79f4d827eb2e8ab5ab7088e25d"
"reference": "a161cd4614503393e58f2f4e4f328208c575244e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/sonata-project/SonataMediaBundle/zipball/064ef598de99bb79f4d827eb2e8ab5ab7088e25d",
"reference": "064ef598de99bb79f4d827eb2e8ab5ab7088e25d",
"url": "https://api.github.com/repos/sonata-project/SonataMediaBundle/zipball/a161cd4614503393e58f2f4e4f328208c575244e",
"reference": "a161cd4614503393e58f2f4e4f328208c575244e",
"shasum": ""
},
"require": {
"guzzlehttp/psr7": "^1.0",
"imagine/imagine": "^0.6 || ^0.7",
"jms/serializer-bundle": "^1.0 || ^2.0",
"knplabs/gaufrette": "^0.3 || ^0.4 || ^0.5 || ^0.6 || ^0.7",
"knplabs/gaufrette": "^0.8",
"kriswallsmith/buzz": "^0.15 || ^0.16",
"php": "^5.6 || ^7.0",
"php": "^7.1",
"psr/log": "^1.0",
"sonata-project/core-bundle": "^3.9",
"sonata-project/doctrine-extensions": "^1.0",
"sonata-project/doctrine-extensions": "^1.1",
"sonata-project/easy-extends-bundle": "^2.5",
"symfony/config": "^2.8 || ^3.2 || ^4.0",
"symfony/console": "^2.8 || ^3.2 || ^4.0",
"symfony/dependency-injection": "^2.8 || ^3.2 || ^4.0",
"symfony/event-dispatcher": "^2.8 || ^3.2 || ^4.0",
"symfony/filesystem": "^2.8 || ^3.2 || ^4.0",
"symfony/filesystem": "^2.8.18 || ^3.2.5 || ^4.0",
"symfony/finder": "^2.8 || ^3.2 || ^4.0",
"symfony/form": "^2.8 || ^3.2 || ^4.0",
"symfony/form": "^2.8.18 || ^3.2.5 || ^4.0",
"symfony/framework-bundle": "^2.8 || ^3.2 || ^4.0",
"symfony/http-foundation": "^2.8 || ^3.2 || ^4.0",
"symfony/http-kernel": "^2.8 || ^3.2 || ^4.0",
......@@ -4419,7 +4424,7 @@
"friendsofsymfony/rest-bundle": "^2.1",
"jackalope/jackalope-doctrine-dbal": "^1.1",
"liip/imagine-bundle": "^1.9",
"matthiasnoback/symfony-dependency-injection-test": "^1.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.1",
"nelmio/api-doc-bundle": "^2.11",
"sonata-project/admin-bundle": "^3.31",
"sonata-project/block-bundle": "^3.11",
......@@ -4428,7 +4433,7 @@
"sonata-project/formatter-bundle": "^3.4 || ^4.0",
"sonata-project/notification-bundle": "^3.3",
"sonata-project/seo-bundle": "^2.5",
"symfony/phpunit-bridge": "^4.0",
"symfony/phpunit-bridge": "^4.2",
"symfony/security-csrf": "^2.8 || ^3.2 || ^4.0"
},
"suggest": {
......@@ -4479,7 +4484,7 @@
"vimeo",
"youtube"
],
"time": "2018-11-05T18:47:47+00:00"
"time": "2019-01-12T12:11:00+00:00"
},
{
"name": "sonata-project/user-bundle",
......@@ -7858,16 +7863,16 @@
},
{
"name": "twig/twig",
"version": "v2.6.0",
"version": "v2.6.2",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "a11dd39f5b6589e14f0ff3b36675d06047c589b1"
"reference": "7d7342c8a4059fefb9b8d07db0cc14007021f9b7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/a11dd39f5b6589e14f0ff3b36675d06047c589b1",
"reference": "a11dd39f5b6589e14f0ff3b36675d06047c589b1",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/7d7342c8a4059fefb9b8d07db0cc14007021f9b7",
"reference": "7d7342c8a4059fefb9b8d07db0cc14007021f9b7",
"shasum": ""
},
"require": {
......@@ -7921,20 +7926,20 @@
"keywords": [
"templating"
],
"time": "2018-12-16T10:36:48+00:00"
"time": "2019-01-14T15:00:48+00:00"
},
{
"name": "vich/uploader-bundle",
"version": "1.8.5",
"version": "1.8.6",
"source": {
"type": "git",
"url": "https://github.com/dustin10/VichUploaderBundle.git",
"reference": "ee1ffe8264d4ea09f97756580963d059809bb941"
"reference": "5cd1b931a3acc2fcb5cf51e4a2ff4559b19ab0c6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/dustin10/VichUploaderBundle/zipball/ee1ffe8264d4ea09f97756580963d059809bb941",
"reference": "ee1ffe8264d4ea09f97756580963d059809bb941",
"url": "https://api.github.com/repos/dustin10/VichUploaderBundle/zipball/5cd1b931a3acc2fcb5cf51e4a2ff4559b19ab0c6",
"reference": "5cd1b931a3acc2fcb5cf51e4a2ff4559b19ab0c6",
"shasum": ""
},
"require": {
......@@ -7968,6 +7973,7 @@
"symfony/framework-bundle": "^3.4|^4.0",
"symfony/phpunit-bridge": "^3.3",
"symfony/security-csrf": "^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",
......@@ -8013,7 +8019,7 @@
"file uploads",
"upload"
],
"time": "2018-11-27T10:24:51+00:00"
"time": "2018-12-21T17:27:08+00:00"
},
{
"name": "webmozart/assert",
......@@ -8869,16 +8875,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.1.1",
"version": "v4.2.0",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "8aae5b59b83bb4d0dbf07b0a835f2680a658f610"
"reference": "594bcae1fc0bccd3993d2f0d61a018e26ac2865a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/8aae5b59b83bb4d0dbf07b0a835f2680a658f610",
"reference": "8aae5b59b83bb4d0dbf07b0a835f2680a658f610",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/594bcae1fc0bccd3993d2f0d61a018e26ac2865a",
"reference": "594bcae1fc0bccd3993d2f0d61a018e26ac2865a",
"shasum": ""
},
"require": {
......@@ -8894,7 +8900,7 @@
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.1-dev"
"dev-master": "4.2-dev"
}
},
"autoload": {
......@@ -8916,7 +8922,7 @@
"parser",
"php"
],
"time": "2018-12-26T11:32:39+00:00"
"time": "2019-01-12T16:31:37+00:00"
},
{
"name": "sebastian/comparator",
......
......@@ -23,3 +23,27 @@ monolog:
handler: deprecation
max_level: info
channels: ["php"]
main_critical:
type: fingers_crossed
action_level: critical
handler: grouped_critical
grouped_critical:
type: group
members: [streamed_critical, buffered_critical]
streamed_critical:
type: rotating_file
max_files: 10
path: %kernel.logs_dir%/%kernel.environment%.critical.log
level: info
buffered_critical:
type: buffer
handler: swift_critical
swift_critical:
type: swift_mailer
from_email: debug@doume.org
to_email: [julien.jorry@gmail.com, stephan@gelberger.com]
# or list of recipients
# to_email: [julien.jorry@gmail.com, pascal.roos@gmail.com, ]
subject: "MLC : PHP Error !"
level: info
sonata_user:
# security_acl: true
security_acl: false
manager_type: orm # can be orm or mongodb
class:
user: App\Entity\User
group: App\Entity\Usergroup
profile:
default_avatar: 'images/admin/default_avatar.png' # Default avatar displayed if the user doesn't have one
admin: # Admin Classes
user:
class: App\Application\Sonata\UserBundle\Admin\UserAdmin
# controller: SonataAdminBundle:CRUD
translation: SonataUserBundle
impersonating:
route: sonata_admin_dashboard
sonata_block:
default_contexts: [sonata_page_bundle]
blocks:
......
......@@ -50,6 +50,14 @@ sonata_media:
formats:
small: { width: 100 , quality: 95}
big: { width: 500 , quality: 90}
faq:
providers:
- sonata.media.provider.image
- sonata.media.provider.file
formats:
small: { width: 100 , quality: 95}
big: { width: 500 , quality: 90}
cdn:
......
......@@ -5,7 +5,6 @@
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
parameters:
locale: 'en'
sonata.user.admin.user.class: 'App\Admin\UserAdmin'
services:
# default configuration for services in *this* file
......@@ -131,8 +130,8 @@ services:
tags:
- name: sonata.admin
manager_type: orm
group: "Document"
label: "Gérer"
group: "Contenu"
label: "Documents"
public: true
admin.rubrique.gerer:
......@@ -141,6 +140,16 @@ services:
tags:
- name: sonata.admin
manager_type: orm
group: "Rubrique"
label: "Gérer"
group: "Contenu"
label: "Rubriques"
public: true
admin.faq.gerer:
class: App\Admin\FaqAdmin
arguments: [~, App\Entity\Faq, ~]
tags:
- name: sonata.admin
manager_type: orm
group: "Contenu"
label: "FAQs"
public: true
......@@ -77,7 +77,7 @@ App\Entity\Prestataire:
siret: <text(10)>
geoloc (unique): '@geoloc*'
# user (unique): '@user<numberBetween(11,30)>'
typeprestataire: '@typepresta_prestataire'
typeprestataire: '@typepresta_prestataire*'
prestataire{22..32}:
raison: <text(10)>
responsable: <text(10)>
......@@ -87,7 +87,7 @@ App\Entity\Prestataire:
siret: <text(10)>
geoloc (unique): '@geoloc*'
# user (unique): '@user<numberBetween(11,30)>'
typeprestataire: '@typepresta_prestataire'
typeprestataire: '@typepresta_prestataire*'
groupeprestataires: ['@grppresta_*']
horaires: "<dayOfWeek()> de <time('H')>h à <time('H')>h"
......@@ -95,7 +95,7 @@ App\Entity\User:
usersuperadmin:
username: 'adminuser'
email: 'julien.jorry@gmail.com'
plainPassword: 'Fyeevuio22'
plainPassword: 'test'
enabled: true
groups: ['@usergroup_superadmin']
roles: ['ROLE_SUPER_ADMIN']
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -19,3 +19,15 @@
[Wed Jan 09 19:26:37.905339 2019] [php7:error] [pid 20965] [client 127.0.0.1:54948] PHP Fatal error: Method App\\Entity\\Groupe::__toString() must not throw an exception, caught TypeError: Return value of App\\Entity\\Groupe::__toString() must be of the type string, null returned in /Users/julien/Desktop/DOUME/ledellin/vendor/twig/twig/lib/Twig/Extension/Core.php on line 0, referer: http://www.doume.test/admin/app/groupe/list
[Wed Jan 09 19:44:38.386620 2019] [php7:error] [pid 20965] [client 127.0.0.1:59475] PHP Fatal error: Class App\\Form\\EntityToIdTransformer contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\\Component\\Form\\DataTransformerInterface::reverseTransform) in /Users/julien/Desktop/DOUME/ledellin/src/Form/EntityToIdTransformer.php on line 9, referer: http://www.doume.test/admin/app/groupe/list
[Wed Jan 09 20:05:19.917664 2019] [php7:error] [pid 25864] [client 127.0.0.1:64672] PHP Fatal error: Method App\\Entity\\Rubrique::__toString() must not throw an exception, caught TypeError: Return value of App\\Entity\\Rubrique::__toString() must be of the type string, null returned in /Users/julien/Desktop/DOUME/ledellin/vendor/twig/twig/lib/Twig/Extension/Core.php on line 0, referer: http://www.doume.test/admin/app/rubrique/list
[Mon Jan 14 16:43:14.544620 2019] [php7:error] [pid 40616] [client 127.0.0.1:54684] PHP Fatal error: Cannot declare class Sonata\\UserBundle\\Admin\\Model\\UserAdmin, because the name is already in use in /Users/julien/Desktop/DOUME/ledellin/src/Application/Sonata/UserBundle/Admin/UserAdmin.php on line 0
[Mon Jan 14 16:47:13.967624 2019] [php7:error] [pid 40568] [client 127.0.0.1:54748] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Model/UserAdmin.php on line 33, referer: http://www.doume.test/admin/user/list
[Mon Jan 14 16:47:14.377460 2019] [php7:error] [pid 40568] [client 127.0.0.1:54748] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Entity/UserAdmin.php on line 18, referer: http://www.doume.test/admin/user/list
[Mon Jan 14 16:47:16.036580 2019] [php7:error] [pid 40616] [client 127.0.0.1:54750] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Model/UserAdmin.php on line 33, referer: http://www.doume.test/admin/user/list
[Mon Jan 14 16:47:16.262028 2019] [php7:error] [pid 40616] [client 127.0.0.1:54750] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Entity/UserAdmin.php on line 18, referer: http://www.doume.test/admin/user/list
[Mon Jan 14 16:47:22.280013 2019] [php7:error] [pid 40569] [client 127.0.0.1:54753] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Model/UserAdmin.php on line 33
[Mon Jan 14 16:47:22.488889 2019] [php7:error] [pid 40569] [client 127.0.0.1:54753] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Entity/UserAdmin.php on line 18
[Mon Jan 14 16:47:40.051908 2019] [php7:error] [pid 40567] [client 127.0.0.1:54758] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Model/UserAdmin.php on line 33
[Mon Jan 14 16:47:40.482546 2019] [php7:error] [pid 40567] [client 127.0.0.1:54758] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Entity/UserAdmin.php on line 18
[Mon Jan 14 16:48:30.540076 2019] [php7:error] [pid 40571] [client 127.0.0.1:54761] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Model/UserAdmin.php on line 33
[Mon Jan 14 16:48:30.860332 2019] [php7:error] [pid 40571] [client 127.0.0.1:54761] PHP Fatal error: Class 'Sonata\\UserBundle\\Admin\\Model\\UserAdmin' not found in /Users/julien/Desktop/DOUME/ledellin/vendor/sonata-project/user-bundle/src/Admin/Entity/UserAdmin.php on line 18
[Mon Jan 14 16:50:00.697303 2019] [php7:error] [pid 40614] [client 127.0.0.1:54766] PHP Fatal error: Cannot declare class Sonata\\UserBundle\\Admin\\Model\\UserAdmin, because the name is already in use in /Users/julien/Desktop/DOUME/ledellin/src/Application/Sonata/UserBundle/Admin/UserAdmin.php on line 33
<?php
namespace App\Admin;
use App\Entity\User;
use FOS\CKEditorBundle\Form\Type\CKEditorType;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\MediaBundle\Form\Type\MediaType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
class FaqAdmin extends AbstractAdmin
{
/**
* {@inheritdoc}
*/
protected function configureFormFields(FormMapper $formMapper)
{
$document = $this->getSubject();
$formMapper
->add('user', HiddenType::class, array(
'data' => $this->getConfigurationPool()->getContainer()->get('security.token_storage')->getToken()->getUser()->getId(),
'data_class' => null,
'entity_class' => User::class,
'em' => $this->getConfigurationPool()->getContainer()->get('doctrine')->getEntityManager()
))
->add('name', TextType::class, array(
'label' => 'Titre :'
))
->add('text', CKEditorType::class, array(
'label' => 'Texte',
'required' => false,
))
->add('fichier', MediaType::class, array('provider' => 'sonata.media.provider.file', 'context' => 'faq'))
->add('image', MediaType::class, array('provider' => 'sonata.media.provider.image', 'context' => 'faq'))
;
}
/**
* {@inheritdoc}
*/
protected function configureListFields(ListMapper $listMapper)
{
unset($this->listModes['mosaic']);
$listMapper
->addIdentifier('name', null, array('label' => 'Titre'))
->addIdentifier('text', 'html', array('label' => 'Text'))
->addIdentifier('fichier', null, array('label' => 'Fichier'))
->addIdentifier('image', null, array('label' => 'Image'))
;
}
}
......@@ -29,6 +29,20 @@ class PrestataireAdmin extends UserAdmin
*/
protected function configureFormFields(FormMapper $formMapper): void
{
// get the current Image instance
$user = $this->getSubject();
$imageHelp = null;
if (!empty($user->getPrestataire()) && !empty($user->getPrestataire()->getMedia())) {
$image = $user->getPrestataire()->getMedia();
if ($image && ($webPath = $image->getWebPath())) {
// get the container so the full path to the image can be set
$container = $this->getConfigurationPool()->getContainer();
$fullPath = $container->get('request_stack')->getCurrentRequest()->getBasePath().'/'.$webPath;
// add a 'help' option containing the preview's img tag
$imageHelp = '<img src="'.$fullPath.'" class="admin-preview" />';
}
}
$formMapper
->tab('Prestataire')
->with('General', ['class' => 'col-md-6'])
......@@ -60,9 +74,10 @@ class PrestataireAdmin extends UserAdmin
))
->end()
->with('Image', ['class' => 'col-md-6'])
->add('media', MediaType::class, array(
->add('prestataire.media', MediaType::class, array(
'provider' => 'sonata.media.provider.image',
'context' => 'prestataire'
'context' => 'prestataire',
'help' => $imageHelp
))
->end()
->end()
......
......@@ -7,7 +7,7 @@ use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Route\RouteCollection;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\UserBundle\Admin\Model\UserAdmin as SonataUserAdmin;
use App\Application\Sonata\UserBundle\Admin\UserAdmin as SonataUserAdmin;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormEvent;
......
<?php
declare(strict_types=1);
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Application\Sonata\UserBundle\Admin;
use FOS\UserBundle\Model\UserManagerInterface;
use Sonata\AdminBundle\Admin\AbstractAdmin;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\AdminBundle\Form\Type\ModelType;
use Sonata\AdminBundle\Show\ShowMapper;
use Sonata\CoreBundle\Form\Type\DatePickerType;
use Sonata\UserBundle\Form\Type\SecurityRolesType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\LocaleType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\TimezoneType;
use Symfony\Component\Form\Extension\Core\Type\UrlType;
use Symfony\Component\Form\FormTypeInterface;
use Sonata\UserBundle\Admin\Model\UserAdmin as BaseUserAdmin;
class UserAdmin extends BaseUserAdmin
{
/**
* {@inheritdoc}
*/
protected function configureListFields(ListMapper $listMapper): void
{
$listMapper
->addIdentifier('username')
->add('email')
->add('groups')
->add('enabled', null, ['editable' => true])
->add('createdAt')
;
if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) {
$listMapper
->add('impersonating', 'string', ['template' => '@SonataUser/Admin/Field/impersonating.html.twig'])
;
}
}
/**
* {@inheritdoc}
*/
protected function configureDatagridFilters(DatagridMapper $filterMapper): void
{
$filterMapper
->add('id')
->add('username')
->add('email')
->add('groups')
;
}
/**
* {@inheritdoc}
*/
protected function configureShowFields(ShowMapper $showMapper): void
{
$showMapper
->with('General')
->add('username')
->add('email')
->end()
->with('Groups')
->add('groups')
->end()
->with('Profile')
// ->add('dateOfBirth')
->add('firstname')
->add('lastname')
// ->add('website')
// ->add('biography')
// ->add('gender')
// ->add('locale')
// ->add('timezone')
->add('phone')
->end()
// ->with('Social')
// ->add('facebookUid')
// ->add('facebookName')
// ->add('twitterUid')
// ->add('twitterName')
// ->add('gplusUid')
// ->add('gplusName')
// ->end()
->with('Security')
->add('token')
->add('twoStepVerificationCode')
->end()
;
}
/**
* {@inheritdoc}
*/
protected function configureFormFields(FormMapper $formMapper): void
{
// define group zoning
$formMapper
->tab('User')
->with('Profile', ['class' => 'col-md-6'])->end()
->with('General', ['class' => 'col-md-6'])->end()
// ->with('Social', ['class' => 'col-md-6'])->end()
->end()
->tab('Security')
->with('Groups', ['class' => 'col-md-8'])->end()
->with('Status', ['class' => 'col-md-4'])->end()
// ->with('Keys', ['class' => 'col-md-4'])->end()
// ->with('Roles', ['class' => 'col-md-12'])->end()
->end()
;
$now = new \DateTime();
$genderOptions = [
'choices' => call_user_func([$this->getUserManager()->getClass(), 'getGenderList']),
'required' => true,
'translation_domain' => $this->getTranslationDomain(),
];
// NEXT_MAJOR: Remove this when dropping support for SF 2.8
if (method_exists(FormTypeInterface::class, 'setDefaultOptions')) {
$genderOptions['choices_as_values'] = true;
}
// $formMapper->removeGroup('Social');
$formMapper
->tab('User')
->with('General')
->add('username')
->add('email')
->add('plainPassword', TextType::class, [
'required' => (!$this->getSubject() || null === $this->getSubject()->getId()),
])
->end()
->with('Profile')
// ->add('dateOfBirth', DatePickerType::class, [
// 'years' => range(1900, $now->format('Y')),
// 'dp_min_date' => '1-1-1900',
// 'dp_max_date' => $now->format('c'),
// 'required' => false,
// ])
->add('firstname', null, ['required' => false])
->add('lastname', null, ['required' => false])
// ->add('website', UrlType::class, ['required' => false])
// ->add('biography', TextType::class, ['required' => false])
// ->add('gender', ChoiceType::class, $genderOptions)
// ->add('locale', LocaleType::class, ['required' => false])
// ->add('timezone', TimezoneType::class, ['required' => false])
->add('phone', null, ['required' => false])
->end()
// ->with('Social')
// ->add('facebookUid', null, ['required' => false])
// ->add('facebookName', null, ['required' => false])
// ->add('twitterUid', null, ['required' => false])
// ->add('twitterName', null, ['required' => false])
// ->add('gplusUid', null, ['required' => false])
// ->add('gplusName', null, ['required' => false])
// ->end()
->end()
->tab('Security')
->with('Status')
->add('enabled', null, ['required' => false])
->end()
->with('Groups')
->add('groups', ModelType::class, [
'required' => false,
'expanded' => true,
'multiple' => true,
])
->end()
// ->with('Roles')
// ->add('realRoles', SecurityRolesType::class, [
// 'label' => 'form.label_roles',
// 'expanded' => true,
// 'multiple' => true,
// 'required' => false,
// ])
// ->end()
// ->with('Keys')
// ->add('token', null, ['required' => false])
// ->add('twoStepVerificationCode', null, ['required' => false])
// ->end()
->end()
;
}
}
......@@ -21,8 +21,28 @@ class IndexController extends AbstractController
// // no need to include %count% here; Symfony does that for you
// array('%name%' => $user->getName())
// );
return $this->render('index/index.html.twig', [
'controller_name' => 'IndexController',
return $this->render('index.html.twig', [
'news' => array(),
]);
}
/**
* @Route("/toto/{id}/{name}", name="toto")
*/
// public function index(TranslatorInterface $translator)
public function toto($id, $name)
{
// Exemple pour la traduction :
// $translated = $translator->trans('Symfony is great');
// $translator->transChoice(
// 'Hurry up %name%! There is one apple left.|There are %count% apples left.',
// 10,
// // no need to include %count% here; Symfony does that for you
// array('%name%' => $user->getName())
// );
return $this->render('index.html.twig', [
'toto' => 'toto',
'id' => $id
]);
}
}
......@@ -67,6 +67,7 @@ class Cotisation
private $moyen;
/**
* RECU ENVOYE ?
* @var bool
*
* @ORM\Column(name="recu", type="boolean", nullable=false)
......
......@@ -43,6 +43,13 @@ class Groupeprestataire
*/
protected $prestataires;
/**
* @var null|string (champ libre)
*
* @ORM\Column(name="horaires", type="string", length=255, nullable=true)
*/
private $horaires;
public function __construct()
{
$this->prestataires = new ArrayCollection();
......@@ -57,6 +64,25 @@ class Groupeprestataire
}
/**
* Get horaires
* @return string Horaires
*/
public function getHoraires(): ?string
{
return $this->horaires;
}
/**
* Set horaires
* @return $this
*/
public function setHoraires($horaires): self
{
$this->horaires = $horaires;
return $this;
}
/**
* @return Prestataire[]|ArrayCollection
*/
public function getPrestataires()
......
......@@ -8,14 +8,14 @@ use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20190109183052 extends AbstractMigration
final class Version20190114180229 extends AbstractMigration
{
public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE comptoir DROP user_id');
$this->addSql('ALTER TABLE groupeprestaire ADD horaires VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema) : void
......@@ -23,6 +23,6 @@ final class Version20190109183052 extends AbstractMigration
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
$this->addSql('ALTER TABLE comptoir ADD user_id INT NOT NULL');
$this->addSql('ALTER TABLE groupeprestaire DROP horaires');
}
}
<?php
namespace App\Security\Voter;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;
use Symfony\Component\Security\Core\User\UserInterface;
class AdherentVoter extends Voter
{
protected function supports($attribute, $subject)
{
// replace with your own logic
// https://symfony.com/doc/current/security/voters.html
return in_array($attribute, ['POST_EDIT', 'POST_VIEW'])
&& $subject instanceof \App\Entity\BlogPost;
}
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
{
$user = $token->getUser();
// if the user is anonymous, do not grant access
if (!$user instanceof UserInterface) {
return false;
}
// ... (check conditions and return true to grant permission) ...
switch ($attribute) {
case 'POST_EDIT':
// logic to determine if the user can EDIT
// return true or false
break;
case 'POST_VIEW':
// logic to determine if the user can VIEW
// return true or false
break;
}
return false;
}
}
<?php
namespace App\Security;
namespace App\Security\Voter;
use App\Entity\User;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
......@@ -12,6 +12,7 @@ class UserVoter extends Voter
const ADD = 'add';
const GET = 'get';
const EDIT = 'edit';
const LIST = 'list';
const REMOVE = 'remove';
private $decisionManager;
......@@ -66,6 +67,9 @@ class UserVoter extends Voter
private function canAdd(User $subject, User $user)
{
if ($this->decisionManager->decide($token, array('ROLE_ADHERENT'))) {
return false;
}
}
private function canGet(User $subject, User $user)
......
<?php
namespace App\Twig;
use Twig\Extension\AbstractExtension;
use Twig\TwigFilter;
use Twig\TwigFunction;
class AppExtension extends AbstractExtension
{
// public function getFilters(): array
// {
// return [
// // If your filter generates SAFE HTML, you should add a third
// // parameter: ['is_safe' => ['html']]
// // Reference: https://twig.symfony.com/doc/2.x/advanced.html#automatic-escaping
// new TwigFilter('toto', [$this, 'doSomething']),
// ];
// }
public function getFunctions(): array
{
return [
new TwigFunction('getLastNews', [$this, 'getLastNews']),
];
}
public function getLastNews($limit)
{
$db = $this->
$result= $db->findBy(array('enabled' => true), array('created' => 'DESC', 'limit' => $limit));
return $result;
}
}
{% extends 'base.html.twig' %}
{% block title %}Hello {{ controller_name }}!{% endblock %}
{% block title %}Hello !{% endblock %}
{% block body %}
<style>
......@@ -9,7 +9,7 @@
</style>
<div class="example-wrapper">
<h1>Helloa {{ controller_name }}! ✅</h1>
{# <h1>Helloa {{ getLastNews(5) }}! ✅</h1> #}
{# TRANSLATION :
{% trans %}Hello %name%{% endtrans %}
......@@ -21,7 +21,7 @@
This friendly message is coming from:
<ul>
<li>Your controller at <code><a href="{{ 'src/Controller/IndexController.php'|file_link(0) }}">src/Controller/IndexController.php</a></code></li>
<li>Your template at <code><a href="{{ 'templates/index/index.html.twig'|file_link(0) }}">templates/index/index.html.twig</a></code></li>
<li>Your template at <code><a href="{{ 'templates/index.html.twig'|file_link(0) }}">templates/index.html.twig</a></code></li>
</ul>
</div>
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment