Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
histoiredelart.fr
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Boards
Labels
Milestones
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Karl Pineau
histoiredelart.fr
Commits
38e28e88
Commit
38e28e88
authored
Apr 28, 2019
by
KarlPineau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2d966a9e
Changes
130
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
130 changed files
with
1783 additions
and
1426 deletions
+1783
-1426
app/AppKernel.php
app/AppKernel.php
+0
-1
app/config/routing.yml
app/config/routing.yml
+26
-65
app/config/services.yml
app/config/services.yml
+0
-24
composer.json
composer.json
+4
-1
composer.lock
composer.lock
+508
-241
config/bootstrap.php
config/bootstrap.php
+51
-0
config/bundles.php
config/bundles.php
+11
-0
config/packages/buzz.yaml
config/packages/buzz.yaml
+54
-0
config/packages/dev/monolog.yaml
config/packages/dev/monolog.yaml
+19
-0
config/packages/dev/swiftmailer.yaml
config/packages/dev/swiftmailer.yaml
+4
-0
config/packages/doctrine.yaml
config/packages/doctrine.yaml
+29
-0
config/packages/prod/doctrine.yaml
config/packages/prod/doctrine.yaml
+32
-0
config/packages/prod/monolog.yaml
config/packages/prod/monolog.yaml
+25
-0
config/packages/security_checker.yaml
config/packages/security_checker.yaml
+8
-0
config/packages/sensio_framework_extra.yaml
config/packages/sensio_framework_extra.yaml
+3
-0
config/packages/stof_doctrine_extensions.yaml
config/packages/stof_doctrine_extensions.yaml
+4
-0
config/packages/swiftmailer.yaml
config/packages/swiftmailer.yaml
+3
-0
config/packages/test/monolog.yaml
config/packages/test/monolog.yaml
+7
-0
config/packages/test/swiftmailer.yaml
config/packages/test/swiftmailer.yaml
+2
-0
config/routes/annotations.yaml
config/routes/annotations.yaml
+3
-0
config/services_test.yaml
config/services_test.yaml
+9
-0
phpunit.xml.dist
phpunit.xml.dist
+7
-0
src/API/ClichesBundle/Controller/ClichesController.php
src/API/ClichesBundle/Controller/ClichesController.php
+36
-3
src/API/ClichesBundle/Controller/ProposalChoiceController.php
...API/ClichesBundle/Controller/ProposalChoiceController.php
+15
-0
src/API/ClichesBundle/Controller/ProposalGalleryController.php
...PI/ClichesBundle/Controller/ProposalGalleryController.php
+16
-0
src/API/ClichesBundle/Controller/QueryController.php
src/API/ClichesBundle/Controller/QueryController.php
+36
-2
src/API/ClichesBundle/Controller/ResultController.php
src/API/ClichesBundle/Controller/ResultController.php
+5
-0
src/API/ClichesBundle/Controller/SelectionController.php
src/API/ClichesBundle/Controller/SelectionController.php
+3
-0
src/API/ClichesBundle/Controller/SessionController.php
src/API/ClichesBundle/Controller/SessionController.php
+7
-0
src/API/DataBundle/Controller/ItemController.php
src/API/DataBundle/Controller/ItemController.php
+21
-0
src/API/DataBundle/Controller/SearchController.php
src/API/DataBundle/Controller/SearchController.php
+14
-0
src/API/DataBundle/Controller/TestController.php
src/API/DataBundle/Controller/TestController.php
+3
-0
src/AppBundle/AppBundle.php
src/AppBundle/AppBundle.php
+0
-9
src/AppBundle/Command/CheckAppointmentsCommand.php
src/AppBundle/Command/CheckAppointmentsCommand.php
+0
-83
src/AppBundle/Command/TestEmailCommand.php
src/AppBundle/Command/TestEmailCommand.php
+0
-37
src/AppBundle/Controller/AdminController.php
src/AppBundle/Controller/AdminController.php
+0
-49
src/AppBundle/Controller/DefaultController.php
src/AppBundle/Controller/DefaultController.php
+0
-181
src/AppBundle/Entity/Appointment.php
src/AppBundle/Entity/Appointment.php
+0
-505
src/AppBundle/Form/AppointmentEditType.php
src/AppBundle/Form/AppointmentEditType.php
+0
-67
src/AppBundle/Form/AppointmentType.php
src/AppBundle/Form/AppointmentType.php
+0
-66
src/AppBundle/Repository/AppointmentRepository.php
src/AppBundle/Repository/AppointmentRepository.php
+0
-13
src/AppBundle/Service/MailerService.php
src/AppBundle/Service/MailerService.php
+0
-56
src/AppBundle/Service/PasswordService.php
src/AppBundle/Service/PasswordService.php
+0
-21
src/CAS/AdministrationBundle/Controller/UserController.php
src/CAS/AdministrationBundle/Controller/UserController.php
+5
-0
src/CAS/HomeBundle/Controller/HomeController.php
src/CAS/HomeBundle/Controller/HomeController.php
+2
-0
src/CAS/HomeBundle/Controller/TestMailController.php
src/CAS/HomeBundle/Controller/TestMailController.php
+2
-0
src/CAS/UserBundle/Controller/RemoveController.php
src/CAS/UserBundle/Controller/RemoveController.php
+3
-0
src/CAS/UserBundle/Controller/UserPreferencesController.php
src/CAS/UserBundle/Controller/UserPreferencesController.php
+5
-0
src/CLICHES/AdministrationBundle/Controller/HomepageController.php
...ES/AdministrationBundle/Controller/HomepageController.php
+2
-0
src/CLICHES/AdministrationBundle/Controller/PlayerSessionViewController.php
...strationBundle/Controller/PlayerSessionViewController.php
+5
-0
src/CLICHES/AdministrationBundle/Controller/PlayerSuggestController.php
...ministrationBundle/Controller/PlayerSuggestController.php
+11
-0
src/CLICHES/AdministrationBundle/Controller/StatisticsController.php
.../AdministrationBundle/Controller/StatisticsController.php
+5
-0
src/CLICHES/AdministrationBundle/Controller/TestController.php
...LICHES/AdministrationBundle/Controller/TestController.php
+2
-0
src/CLICHES/AdministrationBundle/Controller/UnrelevantFieldController.php
...nistrationBundle/Controller/UnrelevantFieldController.php
+11
-0
src/CLICHES/AdministrationBundle/Controller/VotesController.php
...ICHES/AdministrationBundle/Controller/VotesController.php
+4
-0
src/CLICHES/HomeBundle/Controller/HomeController.php
src/CLICHES/HomeBundle/Controller/HomeController.php
+8
-0
src/CLICHES/PersonalPlaceBundle/Controller/PrivatePlayerController.php
...ersonalPlaceBundle/Controller/PrivatePlayerController.php
+8
-0
src/CLICHES/PersonalPlaceBundle/Controller/StatsController.php
...LICHES/PersonalPlaceBundle/Controller/StatsController.php
+3
-0
src/CLICHES/PersonalPlaceBundle/Controller/SuggestController.php
...CHES/PersonalPlaceBundle/Controller/SuggestController.php
+2
-0
src/CLICHES/PlayerBundle/Controller/EndController.php
src/CLICHES/PlayerBundle/Controller/EndController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/PlayerSuggestController.php
...ICHES/PlayerBundle/Controller/PlayerSuggestController.php
+4
-0
src/CLICHES/PlayerBundle/Controller/PlayerZoomViewController.php
...CHES/PlayerBundle/Controller/PlayerZoomViewController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/ProposalChoiceController.php
...CHES/PlayerBundle/Controller/ProposalChoiceController.php
+21
-0
src/CLICHES/PlayerBundle/Controller/ProposalController.php
src/CLICHES/PlayerBundle/Controller/ProposalController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/ProposalFieldController.php
...ICHES/PlayerBundle/Controller/ProposalFieldController.php
+6
-0
src/CLICHES/PlayerBundle/Controller/ProposalTestController.php
...LICHES/PlayerBundle/Controller/ProposalTestController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/ResultChoiceController.php
...LICHES/PlayerBundle/Controller/ResultChoiceController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/ResultController.php
src/CLICHES/PlayerBundle/Controller/ResultController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/ResultFieldController.php
...CLICHES/PlayerBundle/Controller/ResultFieldController.php
+20
-0
src/CLICHES/PlayerBundle/Controller/SelectionController.php
src/CLICHES/PlayerBundle/Controller/SelectionController.php
+3
-0
src/CLICHES/PlayerBundle/Controller/SessionController.php
src/CLICHES/PlayerBundle/Controller/SessionController.php
+6
-0
src/DATA/AdministrationBundle/Controller/EntityController.php
...DATA/AdministrationBundle/Controller/EntityController.php
+1
-0
src/DATA/AdministrationBundle/Controller/HomeController.php
src/DATA/AdministrationBundle/Controller/HomeController.php
+2
-0
src/DATA/AdministrationBundle/Controller/PublicController.php
...DATA/AdministrationBundle/Controller/PublicController.php
+3
-0
src/DATA/AdministrationBundle/Controller/ReportingController.php
...A/AdministrationBundle/Controller/ReportingController.php
+6
-0
src/DATA/AdministrationBundle/Controller/SearchController.php
...DATA/AdministrationBundle/Controller/SearchController.php
+3
-0
src/DATA/AdministrationBundle/Controller/TeachingTestController.php
...dministrationBundle/Controller/TeachingTestController.php
+4
-0
src/DATA/AdministrationBundle/Controller/VisualizationController.php
...ministrationBundle/Controller/VisualizationController.php
+3
-0
src/DATA/DataBundle/Command/AlignmentCommand.php
src/DATA/DataBundle/Command/AlignmentCommand.php
+1
-0
src/DATA/DataBundle/Command/GetSameAsCommand.php
src/DATA/DataBundle/Command/GetSameAsCommand.php
+1
-0
src/DATA/DataBundle/Controller/ArtworkController.php
src/DATA/DataBundle/Controller/ArtworkController.php
+4
-0
src/DATA/DataBundle/Controller/BuildingController.php
src/DATA/DataBundle/Controller/BuildingController.php
+4
-0
src/DATA/DataBundle/Controller/EntityController.php
src/DATA/DataBundle/Controller/EntityController.php
+15
-0
src/DATA/DataBundle/Controller/EntityPropertiesAlignmentController.php
...Bundle/Controller/EntityPropertiesAlignmentController.php
+3
-0
src/DATA/DataBundle/Controller/EntitySameAsController.php
src/DATA/DataBundle/Controller/EntitySameAsController.php
+6
-0
src/DATA/DataBundle/Controller/EntitySourcesController.php
src/DATA/DataBundle/Controller/EntitySourcesController.php
+4
-0
src/DATA/DataBundle/Controller/EntityTeachingController.php
src/DATA/DataBundle/Controller/EntityTeachingController.php
+7
-0
src/DATA/DataBundle/Controller/EntityViewsController.php
src/DATA/DataBundle/Controller/EntityViewsController.php
+16
-0
src/DATA/DataBundle/Controller/EntityWikidataController.php
src/DATA/DataBundle/Controller/EntityWikidataController.php
+13
-0
src/DATA/DataBundle/Controller/PadController.php
src/DATA/DataBundle/Controller/PadController.php
+4
-0
src/DATA/DataBundle/Controller/SourceController.php
src/DATA/DataBundle/Controller/SourceController.php
+5
-1
src/DATA/DataBundle/Controller/UnrelevantController.php
src/DATA/DataBundle/Controller/UnrelevantController.php
+7
-0
src/DATA/DuplicateBundle/Controller/DuplicateController.php
src/DATA/DuplicateBundle/Controller/DuplicateController.php
+10
-0
src/DATA/DuplicateBundle/Controller/TypeController.php
src/DATA/DuplicateBundle/Controller/TypeController.php
+9
-0
src/DATA/DuplicateBundle/Controller/WordTypeController.php
src/DATA/DuplicateBundle/Controller/WordTypeController.php
+3
-0
src/DATA/ImageBundle/Controller/FileImageController.php
src/DATA/ImageBundle/Controller/FileImageController.php
+5
-0
src/DATA/ImageBundle/Controller/ImageController.php
src/DATA/ImageBundle/Controller/ImageController.php
+10
-0
src/DATA/ImageBundle/Controller/ViewController.php
src/DATA/ImageBundle/Controller/ViewController.php
+5
-0
src/DATA/ImportBundle/Controller/AdministrationImportController.php
...mportBundle/Controller/AdministrationImportController.php
+6
-0
src/DATA/ImportBundle/Controller/ImportController.php
src/DATA/ImportBundle/Controller/ImportController.php
+9
-0
src/DATA/ImportBundle/Controller/SpecialImportController.php
src/DATA/ImportBundle/Controller/SpecialImportController.php
+3
-0
src/DATA/PersonalPlaceBundle/Controller/FavoriteController.php
...ATA/PersonalPlaceBundle/Controller/FavoriteController.php
+3
-0
src/DATA/PublicBundle/Controller/EntityController.php
src/DATA/PublicBundle/Controller/EntityController.php
+14
-0
src/DATA/PublicBundle/Controller/HomeController.php
src/DATA/PublicBundle/Controller/HomeController.php
+2
-0
src/DATA/PublicBundle/Controller/TeachingController.php
src/DATA/PublicBundle/Controller/TeachingController.php
+5
-0
src/DATA/PublicBundle/Controller/UniversityController.php
src/DATA/PublicBundle/Controller/UniversityController.php
+4
-0
src/DATA/SearchBundle/Controller/SearchController.php
src/DATA/SearchBundle/Controller/SearchController.php
+11
-0
src/DATA/SearchBundle/Controller/SearchIndexController.php
src/DATA/SearchBundle/Controller/SearchIndexController.php
+2
-0
src/DATA/TeachingBundle/Controller/TeachingController.php
src/DATA/TeachingBundle/Controller/TeachingController.php
+13
-0
src/DATA/TeachingBundle/Controller/UniversityController.php
src/DATA/TeachingBundle/Controller/UniversityController.php
+12
-0
src/HOME/HomeBundle/Controller/EmailNotificationController.php
...OME/HomeBundle/Controller/EmailNotificationController.php
+4
-0
src/HOME/HomeBundle/Controller/HomeController.php
src/HOME/HomeBundle/Controller/HomeController.php
+2
-0
src/TB/AdministrationBundle/Controller/HomeController.php
src/TB/AdministrationBundle/Controller/HomeController.php
+2
-0
src/TB/AdministrationBundle/Controller/TestedGameController.php
.../AdministrationBundle/Controller/TestedGameController.php
+47
-0
src/TB/AdministrationBundle/Controller/TestedSessionController.php
...ministrationBundle/Controller/TestedSessionController.php
+14
-0
src/TB/HomeBundle/Controller/HomeController.php
src/TB/HomeBundle/Controller/HomeController.php
+7
-1
src/TB/PersonalPlaceBundle/Controller/HomeController.php
src/TB/PersonalPlaceBundle/Controller/HomeController.php
+2
-0
src/TB/PersonalPlaceBundle/Controller/PublicController.php
src/TB/PersonalPlaceBundle/Controller/PublicController.php
+1
-0
src/TB/PersonalPlaceBundle/Controller/TestedGameController.php
...B/PersonalPlaceBundle/Controller/TestedGameController.php
+1
-0
src/TB/PlayerBundle/Controller/PlayerController.php
src/TB/PlayerBundle/Controller/PlayerController.php
+8
-0
src/TB/TestedGameBundle/Controller/TestedGameController.php
src/TB/TestedGameBundle/Controller/TestedGameController.php
+29
-0
src/TB/TestedGameBundle/Controller/TestedSessionController.php
...B/TestedGameBundle/Controller/TestedSessionController.php
+8
-0
src/TOOLS/AdministrationBundle/Controller/HomeController.php
src/TOOLS/AdministrationBundle/Controller/HomeController.php
+2
-0
src/TOOLS/AdministrationBundle/Controller/TestController.php
src/TOOLS/AdministrationBundle/Controller/TestController.php
+3
-0
src/TOOLS/HomeBundle/Controller/HomeController.php
src/TOOLS/HomeBundle/Controller/HomeController.php
+2
-0
src/TOOLS/NerBundle/Controller/CreatorController.php
src/TOOLS/NerBundle/Controller/CreatorController.php
+4
-0
src/TOOLS/NerBundle/Controller/IndexController.php
src/TOOLS/NerBundle/Controller/IndexController.php
+8
-0
src/TOOLS/NerBundle/Controller/LocationController.php
src/TOOLS/NerBundle/Controller/LocationController.php
+4
-0
symfony.lock
symfony.lock
+276
-0
tests/.gitignore
tests/.gitignore
+0
-0
No files found.
app/AppKernel.php
View file @
38e28e88
...
...
@@ -17,7 +17,6 @@ class AppKernel extends Kernel
new
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle
(),
new
Doctrine\Bundle\DoctrineBundle\DoctrineBundle
(),
new
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle
(),
new
AppBundle\AppBundle
(),
new
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle
(),
new
Jeremyjumeau\ParsedownBundle\JeremyjumeauParsedownBundle
(),
new
Sensio\Bundle\BuzzBundle\SensioBuzzBundle
(),
...
...
app/config/routing.yml
View file @
38e28e88
tools_ner
:
resource
:
"
@TOOLSNerBundle/Controller/"
type
:
annotation
prefix
:
/
tools_layout
:
resource
:
"
@TOOLSLayoutBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/tools/name-entity-recognition/
tools_home
:
resource
:
"
@TOOLSHomeBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
tools/
tools_administration
:
resource
:
"
@TOOLSAdministrationBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
tools/administration/
tb_tested_game
:
resource
:
"
@TBTestedGameBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
ConfusArt/testedGame/
tb_player
:
resource
:
"
@TBPlayerBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
ConfusArt/player/
tb_personal_place
:
resource
:
"
@TBPersonalPlaceBundle/Controller/"
type
:
annotation
prefix
:
/
tb_model
:
resource
:
"
@TBModelBundle/Controller/"
type
:
annotation
prefix
:
/
tb_layout
:
resource
:
"
@TBLayoutBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/ConfusArt/profile/
tb_home
:
resource
:
"
@TBHomeBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
ConfusArt/
tb_administration
:
resource
:
"
@TBAdministrationBundle/Controller/"
type
:
annotation
prefix
:
/
home_layout
:
resource
:
"
@HOMELayoutBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/ConfusArt/administration/
home_home
:
resource
:
"
@HOMEHomeBundle/Controller/"
...
...
@@ -66,108 +46,89 @@ home_home:
data_teaching
:
resource
:
"
@DATATeachingBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/administration/enseignements/
data_search
:
resource
:
"
@DATASearchBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/recherche/
data_public
:
resource
:
"
@DATAPublicBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/
data_personal_place
:
resource
:
"
@DATAPersonalPlaceBundle/Controller/"
type
:
annotation
prefix
:
/
data_layout
:
resource
:
"
@DATALayoutBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/data/profile
data_import
:
resource
:
"
@DATAImportBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/importation/
data_image
:
resource
:
"
@DATAImageBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/administration/images/
data_duplicate
:
resource
:
"
@DATADuplicateBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/administration/duplicate
data_data
:
resource
:
"
@DATADataBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/administration/item/
data_administration
:
resource
:
"
@DATAAdministrationBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
data/administration/
cliches_player
:
resource
:
"
@CLICHESPlayerBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
cliches/player/
cliches_personal_place
:
resource
:
"
@CLICHESPersonalPlaceBundle/Controller/"
type
:
annotation
prefix
:
/
cliches_layout
:
resource
:
"
@CLICHESLayoutBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/cliches/profile/
cliches_home
:
resource
:
"
@CLICHESHomeBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
cliches/
cliches_administration
:
resource
:
"
@CLICHESAdministrationBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
cliches/administration/
cas_user
:
resource
:
"
@CASUserBundle/Controller/"
type
:
annotation
prefix
:
/
cas_layout
:
resource
:
"
@CASLayoutBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/cas/utilisateur/
cas_home
:
resource
:
"
@CASHomeBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
cas/
cas_administration
:
resource
:
"
@CASAdministrationBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
cas/administration/
api_data
:
resource
:
"
@APIDataBundle/Controller/"
type
:
annotation
prefix
:
/
prefix
:
/
api/data/
api_cliches
:
resource
:
"
@APIClichesBundle/Controller/"
type
:
annotation
prefix
:
/
app
:
resource
:
'
@AppBundle/Controller/'
type
:
annotation
prefix
:
/api/cliches/
app/config/services.yml
View file @
38e28e88
...
...
@@ -13,27 +13,3 @@ services:
# this means you cannot fetch services directly from the container via $container->get()
# if you need to do this, you can override this setting on individual services
public
:
false
# makes classes in src/AppBundle available to be used as services
# this creates a service per class whose id is the fully-qualified class name
AppBundle\
:
resource
:
'
../../src/AppBundle/*'
# you can exclude directories or files
# but if a service is unused, it's removed anyway
exclude
:
'
../../src/AppBundle/{Entity,Repository,Tests}'
# controllers are imported separately to make sure they're public
# and have a tag that allows actions to type-hint services
AppBundle\Controller\
:
resource
:
'
../../src/AppBundle/Controller'
public
:
true
tags
:
[
'
controller.service_arguments'
]
# add more services, or override services that need manual wiring
# AppBundle\Service\ExampleService:
# arguments:
# $someArgument: 'some_value'
MailerService
:
class
:
AppBundle\Service\MailerService
public
:
true
arguments
:
[
"
@doctrine.orm.entity_manager"
,
"
@twig"
,
"
@mailer"
]
\ No newline at end of file
composer.json
View file @
38e28e88
...
...
@@ -62,7 +62,10 @@
],
"post-update-cmd"
:
[
"@symfony-scripts"
]
],
"auto-scripts"
:
{
"security-checker security:check"
:
"script"
}
},
"config"
:
{
"sort-packages"
:
true
...
...
composer.lock
View file @
38e28e88
This diff is collapsed.
Click to expand it.
config/bootstrap.php
0 → 100644
View file @
38e28e88
<?php
use
Symfony\Component\Dotenv\Dotenv
;
require
dirname
(
__DIR__
)
.
'/vendor/autoload.php'
;
// Load cached env vars if the .env.local.php file exists
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
if
(
is_array
(
$env
=
@
include
dirname
(
__DIR__
)
.
'/.env.local.php'
))
{
$_ENV
+=
$env
;
}
elseif
(
!
class_exists
(
Dotenv
::
class
))
{
throw
new
RuntimeException
(
'Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'
);
}
else
{
$path
=
dirname
(
__DIR__
)
.
'/.env'
;
$dotenv
=
new
Dotenv
(
false
);
// load all the .env files
if
(
method_exists
(
$dotenv
,
'loadEnv'
))
{
$dotenv
->
loadEnv
(
$path
);
}
else
{
// fallback code in case your Dotenv component is not 4.2 or higher (when loadEnv() was added)
if
(
file_exists
(
$path
)
||
!
file_exists
(
$p
=
"
$path
.dist"
))
{
$dotenv
->
load
(
$path
);
}
else
{
$dotenv
->
load
(
$p
);
}
if
(
null
===
$env
=
$_SERVER
[
'APP_ENV'
]
??
$_ENV
[
'APP_ENV'
]
??
null
)
{
$dotenv
->
populate
(
array
(
'APP_ENV'
=>
$env
=
'dev'
));
}
if
(
'test'
!==
$env
&&
file_exists
(
$p
=
"
$path
.local"
))
{
$dotenv
->
load
(
$p
);
$env
=
$_SERVER
[
'APP_ENV'
]
??
$_ENV
[
'APP_ENV'
]
??
$env
;
}
if
(
file_exists
(
$p
=
"
$path
.
$env
"
))
{
$dotenv
->
load
(
$p
);
}
if
(
file_exists
(
$p
=
"
$path
.
$env
.local"
))
{
$dotenv
->
load
(
$p
);
}
}
}
$_SERVER
+=
$_ENV
;
$_SERVER
[
'APP_ENV'
]
=
$_ENV
[
'APP_ENV'
]
=
(
$_SERVER
[
'APP_ENV'
]
??
$_ENV
[
'APP_ENV'
]
??
null
)
?:
'dev'
;
$_SERVER
[
'APP_DEBUG'
]
=
$_SERVER
[
'APP_DEBUG'
]
??
$_ENV
[
'APP_DEBUG'
]
??
'prod'
!==
$_SERVER
[
'APP_ENV'
];
$_SERVER
[
'APP_DEBUG'
]
=
$_ENV
[
'APP_DEBUG'
]
=
(
int
)
$_SERVER
[
'APP_DEBUG'
]
||
filter_var
(
$_SERVER
[
'APP_DEBUG'
],
FILTER_VALIDATE_BOOLEAN
)
?
'1'
:
'0'
;
config/bundles.php
View file @
38e28e88
...
...
@@ -2,4 +2,15 @@
return
[
Presta\SitemapBundle\PrestaSitemapBundle
::
class
=>
[
'all'
=>
true
],
Sensio\Bundle\BuzzBundle\SensioBuzzBundle
::
class
=>
[
'all'
=>
true
],
Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle
::
class
=>
[
'all'
=>
true
],
Symfony\Bundle\MonologBundle\MonologBundle
::
class
=>
[
'all'
=>
true
],
Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle
::
class
=>
[
'all'
=>
true
],
Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle
::
class
=>
[
'dev'
=>
true
,
'test'
=>
true
],
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle
::
class
=>
[
'all'
=>
true
],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle
::
class
=>
[
'all'
=>
true
],
FOS\UserBundle\FOSUserBundle
::
class
=>
[
'all'
=>
true
],
Jeremyjumeau\ParsedownBundle\JeremyjumeauParsedownBundle
::
class
=>
[
'all'
=>
true
],
Sensio\Bundle\DistributionBundle\SensioDistributionBundle
::
class
=>
[
'all'
=>
true
],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle
::
class
=>
[
'all'
=>
true
],
];
config/packages/buzz.yaml
0 → 100644
View file @
38e28e88
# Read more about client options at: https://github.com/kriswallsmith/Buzz/blob/master/doc/client.md
services
:
_defaults
:
public
:
false
# Tell the auto wire system to use "FileGetContents" client as default client.
# Set this to any of the other clients below (e.g. Curl or MultiCurl) to use a different default client.
Buzz\Client\BuzzClientInterface
:
'
@buzz.client.file_get_contents'
Buzz\Client\BatchClientInterface
:
'
@buzz.client.multi_curl'
# Register alias for PSR-18
Psr\Http\Client\ClientInterface
:
'
@Buzz\Client\BuzzClientInterface'
# Clients
buzz.client.file_get_contents
:
class
:
Buzz\Client\FileGetContents
arguments
:
-
'
@Psr\Http\Message\ResponseFactoryInterface'
-
timeout
:
10
allow_redirects
:
false
buzz.client.curl
:
class
:
Buzz\Client\Curl
arguments
:
-
'
@Psr\Http\Message\ResponseFactoryInterface'
-
timeout
:
10
allow_redirects
:
false
buzz.client.multi_curl
:
class
:
Buzz\Client\MultiCurl
arguments
:
-
'
@Psr\Http\Message\ResponseFactoryInterface'
-
timeout
:
10
allow_redirects
:
false
# Browser
Buzz\Browser
:
arguments
:
[
'
@Buzz\Client\BuzzClientInterface'
,
'
@Psr\Http\Message\RequestFactoryInterface'
]
calls
:
-
[
'
addMiddleware'
,
[
'
@buzz.middleware.content_length'
]]
-
[
'
addMiddleware'
,
[
'
@buzz.middleware.logger'
]]
# Middleware
buzz.middleware.content_length
:
class
:
Buzz\Middleware\ContentLengthMiddleware
buzz.middleware.logger
:
class
:
Buzz\Middleware\LoggerMiddleware
arguments
:
[
'
@?logger'
]
tags
:
-
{
name
:
monolog.logger
,
channel
:
buzz
}
config/packages/dev/monolog.yaml
0 → 100644
View file @
38e28e88
monolog
:
handlers
:
main
:
type
:
stream
path
:
"
%kernel.logs_dir%/%kernel.environment%.log"
level
:
debug
channels
:
[
"
!event"
]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console
:
type
:
console
process_psr_3_messages
:
false
channels
:
[
"
!event"
,
"
!doctrine"
,
"
!console"
]
config/packages/dev/swiftmailer.yaml
0 → 100644
View file @
38e28e88
# See https://symfony.com/doc/current/email/dev_environment.html
swiftmailer
:
# send all emails to a specific address
#delivery_addresses: ['me@example.com']
config/packages/doctrine.yaml
0 → 100644
View file @
38e28e88
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
config/packages/prod/doctrine.yaml
0 → 100644
View file @
38e28e88
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
config/packages/prod/monolog.yaml
0 → 100644
View file @
38e28e88
monolog
:
handlers
:
main
:
type
:
fingers_crossed
action_level
:
error
handler
:
nested
excluded_404s
:
# regex: exclude all 404 errors from the logs
-
^/
nested
:
type
:
stream
path
:
"
%kernel.logs_dir%/%kernel.environment%.log"
level
:
debug
console
:
type
:
console
process_psr_3_messages
:
false
channels
:
[
"
!event"
,
"
!doctrine"
]
deprecation
:
type
:
stream
path
:
"
%kernel.logs_dir%/%kernel.environment%.deprecations.log"
deprecation_filter
:
type
:
filter
handler
:
deprecation
max_level
:
info
channels
:
[
"
php"
]
config/packages/security_checker.yaml
0 → 100644
View file @
38e28e88
services
:
_defaults
:
autowire
:
true
autoconfigure
:
true
SensioLabs\Security\SecurityChecker
:
~
SensioLabs\Security\Command\SecurityCheckerCommand
:
~
config/packages/sensio_framework_extra.yaml
0 → 100644
View file @
38e28e88
sensio_framework_extra
:
router
:
annotations
:
false
config/packages/stof_doctrine_extensions.yaml
0 → 100644
View file @
38e28e88
# Read the documentation: https://symfony.com/doc/current/bundles/StofDoctrineExtensionsBundle/index.html
# See the official DoctrineExtensions documentation for more details: https://github.com/Atlantic18/DoctrineExtensions/tree/master/doc/
stof_doctrine_extensions
:
default_locale
:
en_US
config/packages/swiftmailer.yaml
0 → 100644
View file @
38e28e88
swiftmailer
:
url
:
'
%env(MAILER_URL)%'
spool
:
{
type
:
'
memory'
}
config/packages/test/monolog.yaml
0 → 100644
View file @
38e28e88
monolog
:
handlers
:
main
:
type
:
stream
path
:
"
%kernel.logs_dir%/%kernel.environment%.log"
level
:
debug
channels
:
[
"
!event"
]
config/packages/test/swiftmailer.yaml
0 → 100644
View file @
38e28e88
swiftmailer
:
disable_delivery
:
true
config/routes/annotations.yaml
0 → 100644
View file @
38e28e88
controllers
:
resource
:
../../src/Controller/
type
:
annotation
config/services_test.yaml
0 → 100644
View file @
38e28e88
services
:
_defaults
:
public
:
true
# If you need to access services in a test, create an alias
# and then fetch that alias from the container. As a convention,
# aliases are prefixed with test. For example:
#
# test.App\Service\MyService: '@App\Service\MyService'
phpunit.xml.dist
View file @
38e28e88
...
...
@@ -10,6 +10,13 @@
<php>
<ini
name=
"error_reporting"
value=
"-1"
/>
<server
name=
"KERNEL_CLASS"
value=
"AppKernel"
/>
<!-- ###+ symfony/swiftmailer-bundle ### -->
<!-- For Gmail as a transport, use: "gmail://username:password@localhost" -->
<!-- For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode=" -->
<!-- Delivery is disabled by default via "null://localhost" -->
<env
name=
"MAILER_URL"
value=
"null://localhost"
/>
<!-- ###- symfony/swiftmailer-bundle ### -->
</php>
<testsuites>
...
...
src/API/ClichesBundle/Controller/ClichesController.php
View file @
38e28e88
...
...
@@ -5,9 +5,14 @@ namespace API\ClichesBundle\Controller;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
;
class
ClichesController
extends
Controller
{
/**
* @param Request $request
* @return Response
*/
public
function
indexAction
(
Request
$request
)
{
$messages
=
[
...
...
@@ -34,6 +39,11 @@ class ClichesController extends Controller
return
$response
;
}
/**
* @param $entity
* @param $oldProperties
* @return null
*/
public
function
getProperty
(
$entity
,
$oldProperties
)
{
foreach
(
$this
->
get
(
'data_data.entity'
)
->
getFields
(
$entity
)
as
$fieldContainer
)
{
if
(
!
in_array
(
$fieldContainer
[
'field'
],
$oldProperties
))
{
...
...
@@ -43,9 +53,15 @@ class ClichesController extends Controller
return
null
;
}
// ATTENTION, LES DEUX FONCTIONS CI-DESSOUS SONT TRES PROCHES DE CELLES CONTENUES DANS LE SERVICE playerProposalChoiceAction
// -> A FUSIONNER A TERME
/**
* ATTENTION, LES DEUX FONCTIONS CI-DESSOUS SONT TRES PROCHES DE CELLES CONTENUES DANS LE SERVICE playerProposalChoiceAction
* -> A FUSIONNER A TERME
* @param $teaching
* @param $entity
* @param $field
* @param $choices_number
* @return array
*/
public
function
getOtherValues
(
$teaching
,
$entity
,
$field
,
$choices_number
)
{
$entitiesSetByTeaching
=
$this
->
get
(
'data_data.entity'
)
->
getByTeaching
(
$teaching
,
'restrict'
);
...
...
@@ -63,6 +79,14 @@ class ClichesController extends Controller
return
$values
;
}
/**
* @param $values
* @param $field
* @param $entitiesSetByTeaching
* @param $entitiesSizeIndex
* @param $listValues
* @return array
*/
private
function
getValueForEntity
(
$values
,
$field
,
$entitiesSetByTeaching
,
$entitiesSizeIndex
,
$listValues
)
{
$indexRandom
=
rand
(
0
,
$entitiesSizeIndex
);
...
...
@@ -79,6 +103,15 @@ class ClichesController extends Controller
}
}
/**
* @param $teaching
* @param $entity
* @param $view
* @param $propertyContainer
* @param $values
* @param Request $request
* @return Response
*/
public
function
generateMessengerFormat
(
$teaching
,
$entity
,
$view
,
$propertyContainer
,
$values
,
Request
$request
)
{
$image
=
$this
->
get
(
'data_image.image'
)
->
getOneByView
(
$view
);
...
...
src/API/ClichesBundle/Controller/ProposalChoiceController.php
View file @
38e28e88
...
...
@@ -8,6 +8,7 @@ use CLICHES\PlayerBundle\Entity\PlayerProposalChoiceValue;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
;
class
ProposalChoiceController
extends
Controller
{
...
...
@@ -19,6 +20,9 @@ class ProposalChoiceController extends Controller
* "playerOeuvre_id"="\d+"
* }
* )
* @param $playerOeuvre_id
* @param Request $request
* @return Response
*/
public
function
indexAction
(
$playerOeuvre_id
,
Request
$request
)
{
...
...
@@ -85,6 +89,17 @@ class ProposalChoiceController extends Controller
return
$this
->
generateMessengerFormat
(
$playerProposal
,
$playerOeuvre
->
getPlayerSession
()
->
getTeaching
(),
$this
->
get
(
'data_data.entity'
)
->
getByView
(
$playerOeuvre
->
getView
()),
$playerOeuvre
->
getView
(),
$fieldContainer
,
$choicesArray
,
$difficultyLevel
,
$request
);
}
/**
* @param $playerProposal
* @param $teaching
* @param $entity
* @param $view
* @param $propertyContainer
* @param $values
* @param $difficultyLevel
* @param Request $request
* @return Response
*/
public
function
generateMessengerFormat
(
$playerProposal
,
$teaching
,
$entity
,
$view
,
$propertyContainer
,
$values
,
$difficultyLevel
,
Request
$request
)
{
$image
=
$this
->
get
(
'data_image.image'
)
->
getOneByView
(
$view
);
...
...
src/API/ClichesBundle/Controller/ProposalGalleryController.php
View file @
38e28e88
...
...
@@ -8,9 +8,15 @@ use CLICHES\PlayerBundle\Entity\PlayerProposalChoiceValue;
use
Symfony\Bundle\FrameworkBundle\Controller\Controller
;
use
Symfony\Component\HttpFoundation\Request
;
use
Symfony\Component\HttpFoundation\Response
;
use
Sensio\Bundle\FrameworkExtraBundle\Configuration\Route
;
class
ProposalGalleryController
extends
Controller
{
/**
* @param $playerOeuvre_id
* @param Request $request
* @return Response
*/
public
function
indexAction
(
$playerOeuvre_id
,
Request
$request
)
{
$em
=
$this
->
getDoctrine
()
->
getManager
();
...
...
@@ -78,6 +84,16 @@ class ProposalGalleryController extends Controller
return
$this
->
generateMessengerFormat
(
$playerProposal
,
$playerOeuvre
->
getPlayerSession
()
->
getTeaching
(),
$this
->
get
(
'data_data.entity'
)
->
getByView
(
$playerOeuvre
->
getView
()),
$playerOeuvre
->
getView
(),
$fieldContainer
,
$choicesArray
,
$request
);
}