From 38e28e88230231803fbe59771eb758d2baa3674b Mon Sep 17 00:00:00 2001 From: KarlPineau Date: Sun, 28 Apr 2019 12:42:34 +0200 Subject: [PATCH] update --- app/AppKernel.php | 1 - app/config/routing.yml | 91 +-- app/config/services.yml | 24 - composer.json | 5 +- composer.lock | 749 ++++++++++++------ config/bootstrap.php | 51 ++ config/bundles.php | 11 + config/packages/buzz.yaml | 54 ++ config/packages/dev/monolog.yaml | 19 + config/packages/dev/swiftmailer.yaml | 4 + config/packages/doctrine.yaml | 29 + config/packages/prod/doctrine.yaml | 32 + config/packages/prod/monolog.yaml | 25 + config/packages/security_checker.yaml | 8 + config/packages/sensio_framework_extra.yaml | 3 + config/packages/stof_doctrine_extensions.yaml | 4 + config/packages/swiftmailer.yaml | 3 + config/packages/test/monolog.yaml | 7 + config/packages/test/swiftmailer.yaml | 2 + config/routes/annotations.yaml | 3 + config/services_test.yaml | 9 + phpunit.xml.dist | 7 + .../Controller/ClichesController.php | 39 +- .../Controller/ProposalChoiceController.php | 15 + .../Controller/ProposalGalleryController.php | 16 + .../Controller/QueryController.php | 38 +- .../Controller/ResultController.php | 5 + .../Controller/SelectionController.php | 3 + .../Controller/SessionController.php | 7 + .../DataBundle/Controller/ItemController.php | 21 + .../Controller/SearchController.php | 14 + .../DataBundle/Controller/TestController.php | 3 + src/AppBundle/AppBundle.php | 9 - .../Command/CheckAppointmentsCommand.php | 83 -- src/AppBundle/Command/TestEmailCommand.php | 37 - src/AppBundle/Controller/AdminController.php | 49 -- .../Controller/DefaultController.php | 181 ----- src/AppBundle/Entity/Appointment.php | 505 ------------ src/AppBundle/Form/AppointmentEditType.php | 67 -- src/AppBundle/Form/AppointmentType.php | 66 -- .../Repository/AppointmentRepository.php | 13 - src/AppBundle/Service/MailerService.php | 56 -- src/AppBundle/Service/PasswordService.php | 21 - .../Controller/UserController.php | 5 + .../HomeBundle/Controller/HomeController.php | 2 + .../Controller/TestMailController.php | 2 + .../Controller/RemoveController.php | 3 + .../Controller/UserPreferencesController.php | 5 + .../Controller/HomepageController.php | 2 + .../PlayerSessionViewController.php | 5 + .../Controller/PlayerSuggestController.php | 11 + .../Controller/StatisticsController.php | 5 + .../Controller/TestController.php | 2 + .../Controller/UnrelevantFieldController.php | 11 + .../Controller/VotesController.php | 4 + .../HomeBundle/Controller/HomeController.php | 8 + .../Controller/PrivatePlayerController.php | 8 + .../Controller/StatsController.php | 3 + .../Controller/SuggestController.php | 2 + .../PlayerBundle/Controller/EndController.php | 3 + .../Controller/PlayerSuggestController.php | 4 + .../Controller/PlayerZoomViewController.php | 3 + .../Controller/ProposalChoiceController.php | 21 + .../Controller/ProposalController.php | 3 + .../Controller/ProposalFieldController.php | 6 + .../Controller/ProposalTestController.php | 3 + .../Controller/ResultChoiceController.php | 3 + .../Controller/ResultController.php | 3 + .../Controller/ResultFieldController.php | 20 + .../Controller/SelectionController.php | 3 + .../Controller/SessionController.php | 6 + .../Controller/EntityController.php | 1 + .../Controller/HomeController.php | 2 + .../Controller/PublicController.php | 3 + .../Controller/ReportingController.php | 6 + .../Controller/SearchController.php | 3 + .../Controller/TeachingTestController.php | 4 + .../Controller/VisualizationController.php | 3 + .../DataBundle/Command/AlignmentCommand.php | 1 + .../DataBundle/Command/GetSameAsCommand.php | 1 + .../Controller/ArtworkController.php | 4 + .../Controller/BuildingController.php | 4 + .../Controller/EntityController.php | 15 + .../EntityPropertiesAlignmentController.php | 3 + .../Controller/EntitySameAsController.php | 6 + .../Controller/EntitySourcesController.php | 4 + .../Controller/EntityTeachingController.php | 7 + .../Controller/EntityViewsController.php | 16 + .../Controller/EntityWikidataController.php | 13 + .../DataBundle/Controller/PadController.php | 4 + .../Controller/SourceController.php | 6 +- .../Controller/UnrelevantController.php | 7 + .../Controller/DuplicateController.php | 10 + .../Controller/TypeController.php | 9 + .../Controller/WordTypeController.php | 3 + .../Controller/FileImageController.php | 5 + .../Controller/ImageController.php | 10 + .../ImageBundle/Controller/ViewController.php | 5 + .../AdministrationImportController.php | 6 + .../Controller/ImportController.php | 9 + .../Controller/SpecialImportController.php | 3 + .../Controller/FavoriteController.php | 3 + .../Controller/EntityController.php | 14 + .../Controller/HomeController.php | 2 + .../Controller/TeachingController.php | 5 + .../Controller/UniversityController.php | 4 + .../Controller/SearchController.php | 11 + .../Controller/SearchIndexController.php | 2 + .../Controller/TeachingController.php | 13 + .../Controller/UniversityController.php | 12 + .../EmailNotificationController.php | 4 + .../HomeBundle/Controller/HomeController.php | 2 + .../Controller/HomeController.php | 2 + .../Controller/TestedGameController.php | 47 ++ .../Controller/TestedSessionController.php | 14 + .../HomeBundle/Controller/HomeController.php | 8 +- .../Controller/HomeController.php | 2 + .../Controller/PublicController.php | 1 + .../Controller/TestedGameController.php | 1 + .../Controller/PlayerController.php | 8 + .../Controller/TestedGameController.php | 29 + .../Controller/TestedSessionController.php | 8 + .../Controller/HomeController.php | 2 + .../Controller/TestController.php | 3 + .../HomeBundle/Controller/HomeController.php | 2 + .../Controller/CreatorController.php | 4 + .../NerBundle/Controller/IndexController.php | 8 + .../Controller/LocationController.php | 4 + symfony.lock | 276 +++++++ tests/.gitignore | 0 130 files changed, 1783 insertions(+), 1426 deletions(-) create mode 100644 config/bootstrap.php create mode 100644 config/packages/buzz.yaml create mode 100644 config/packages/dev/monolog.yaml create mode 100644 config/packages/dev/swiftmailer.yaml create mode 100644 config/packages/doctrine.yaml create mode 100644 config/packages/prod/doctrine.yaml create mode 100644 config/packages/prod/monolog.yaml create mode 100644 config/packages/security_checker.yaml create mode 100644 config/packages/sensio_framework_extra.yaml create mode 100644 config/packages/stof_doctrine_extensions.yaml create mode 100644 config/packages/swiftmailer.yaml create mode 100644 config/packages/test/monolog.yaml create mode 100644 config/packages/test/swiftmailer.yaml create mode 100644 config/routes/annotations.yaml create mode 100644 config/services_test.yaml delete mode 100644 src/AppBundle/AppBundle.php delete mode 100644 src/AppBundle/Command/CheckAppointmentsCommand.php delete mode 100644 src/AppBundle/Command/TestEmailCommand.php delete mode 100644 src/AppBundle/Controller/AdminController.php delete mode 100644 src/AppBundle/Controller/DefaultController.php delete mode 100644 src/AppBundle/Entity/Appointment.php delete mode 100644 src/AppBundle/Form/AppointmentEditType.php delete mode 100644 src/AppBundle/Form/AppointmentType.php delete mode 100644 src/AppBundle/Repository/AppointmentRepository.php delete mode 100644 src/AppBundle/Service/MailerService.php delete mode 100644 src/AppBundle/Service/PasswordService.php create mode 100644 tests/.gitignore diff --git a/app/AppKernel.php b/app/AppKernel.php index fdb9fb2..f174d37 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -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(), diff --git a/app/config/routing.yml b/app/config/routing.yml index 35b2342..e8d7902 100644 --- a/app/config/routing.yml +++ b/app/config/routing.yml @@ -1,62 +1,42 @@ 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/ diff --git a/app/config/services.yml b/app/config/services.yml index aa6142d..63dc7a1 100644 --- a/app/config/services.yml +++ b/app/config/services.yml @@ -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 diff --git a/composer.json b/composer.json index 298391b..6cde6e2 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,10 @@ ], "post-update-cmd": [ "@symfony-scripts" - ] + ], + "auto-scripts": { + "security-checker security:check": "script" + } }, "config": { "sort-packages": true diff --git a/composer.lock b/composer.lock index 0e50794..987bcc4 100644 --- a/composer.lock +++ b/composer.lock @@ -1,10 +1,9 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "hash": "7bc897e6a150d9f85d5febb815429c97", "content-hash": "4f28022c688b88ec6726cb6fd4d289e5", "packages": [ { @@ -49,20 +48,20 @@ "slug", "transliterator" ], - "time": "2017-04-04 11:38:05" + "time": "2017-04-04T11:38:05+00:00" }, { "name": "composer/ca-bundle", - "version": "1.1.3", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/composer/ca-bundle.git", - "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660" + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/ca-bundle/zipball/8afa52cd417f4ec417b4bfe86b68106538a87660", - "reference": "8afa52cd417f4ec417b4bfe86b68106538a87660", + "url": "https://api.github.com/repos/composer/ca-bundle/zipball/558f321c52faeb4828c03e7dc0cfe39a09e09a2d", + "reference": "558f321c52faeb4828c03e7dc0cfe39a09e09a2d", "shasum": "" }, "require": { @@ -105,34 +104,34 @@ "ssl", "tls" ], - "time": "2018-10-18 06:09:13" + "time": "2019-01-28T09:30:10+00:00" }, { "name": "doctrine/annotations", - "version": "v1.4.0", + "version": "v1.6.1", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "54cacc9b81758b14e3ce750f205a393d52339e97" + "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/54cacc9b81758b14e3ce750f205a393d52339e97", - "reference": "54cacc9b81758b14e3ce750f205a393d52339e97", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/53120e0eb10355388d6ccbe462f1fea34ddadb24", + "reference": "53120e0eb10355388d6ccbe462f1fea34ddadb24", "shasum": "" }, "require": { "doctrine/lexer": "1.*", - "php": "^5.6 || ^7.0" + "php": "^7.1" }, "require-dev": { "doctrine/cache": "1.*", - "phpunit/phpunit": "^5.7" + "phpunit/phpunit": "^6.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.4.x-dev" + "dev-master": "1.6.x-dev" } }, "autoload": { @@ -173,37 +172,42 @@ "docblock", "parser" ], - "time": "2017-02-24 16:22:25" + "time": "2019-03-25T19:12:02+00:00" }, { "name": "doctrine/cache", - "version": "v1.6.2", + "version": "v1.8.0", "source": { "type": "git", "url": "https://github.com/doctrine/cache.git", - "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b" + "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/eb152c5100571c7a45470ff2a35095ab3f3b900b", - "reference": "eb152c5100571c7a45470ff2a35095ab3f3b900b", + "url": "https://api.github.com/repos/doctrine/cache/zipball/d768d58baee9a4862ca783840eca1b9add7a7f57", + "reference": "d768d58baee9a4862ca783840eca1b9add7a7f57", "shasum": "" }, "require": { - "php": "~5.5|~7.0" + "php": "~7.1" }, "conflict": { "doctrine/common": ">2.2,<2.4" }, "require-dev": { - "phpunit/phpunit": "~4.8|~5.0", - "predis/predis": "~1.0", - "satooshi/php-coveralls": "~0.6" + "alcaeus/mongo-php-adapter": "^1.1", + "doctrine/coding-standard": "^4.0", + "mongodb/mongodb": "^1.1", + "phpunit/phpunit": "^7.0", + "predis/predis": "~1.0" + }, + "suggest": { + "alcaeus/mongo-php-adapter": "Required to use legacy MongoDB driver" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.6.x-dev" + "dev-master": "1.8.x-dev" } }, "autoload": { @@ -238,43 +242,45 @@ } ], "description": "Caching library offering an object-oriented API for many cache backends", - "homepage": "http://www.doctrine-project.org", + "homepage": "https://www.doctrine-project.org", "keywords": [ "cache", "caching" ], - "time": "2017-07-22 12:49:21" + "time": "2018-08-21T18:01:43+00:00" }, { "name": "doctrine/collections", - "version": "v1.4.0", + "version": "v1.6.1", "source": { "type": "git", "url": "https://github.com/doctrine/collections.git", - "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba" + "reference": "d2ae4ef05e25197343b6a39bae1d3c427a2f6956" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/1a4fb7e902202c33cce8c55989b945612943c2ba", - "reference": "1a4fb7e902202c33cce8c55989b945612943c2ba", + "url": "https://api.github.com/repos/doctrine/collections/zipball/d2ae4ef05e25197343b6a39bae1d3c427a2f6956", + "reference": "d2ae4ef05e25197343b6a39bae1d3c427a2f6956", "shasum": "" }, "require": { - "php": "^5.6 || ^7.0" + "php": "^7.1.3" }, "require-dev": { - "doctrine/coding-standard": "~0.1@dev", - "phpunit/phpunit": "^5.7" + "doctrine/coding-standard": "^6.0", + "phpstan/phpstan-shim": "^0.9.2", + "phpunit/phpunit": "^7.0", + "vimeo/psalm": "^3.2.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.3.x-dev" + "dev-master": "1.6.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Collections\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Collections\\": "lib/Doctrine/Common/Collections" } }, "notification-url": "https://packagist.org/downloads/", @@ -303,44 +309,51 @@ "email": "schmittjoh@gmail.com" } ], - "description": "Collections Abstraction library", - "homepage": "http://www.doctrine-project.org", + "description": "PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.", + "homepage": "https://www.doctrine-project.org/projects/collections.html", "keywords": [ "array", "collections", - "iterator" + "iterators", + "php" ], - "time": "2017-01-03 10:49:41" + "time": "2019-03-25T19:03:48+00:00" }, { "name": "doctrine/common", - "version": "v2.7.3", + "version": "v2.10.0", "source": { "type": "git", "url": "https://github.com/doctrine/common.git", - "reference": "4acb8f89626baafede6ee5475bc5844096eba8a9" + "reference": "30e33f60f64deec87df728c02b107f82cdafad9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/4acb8f89626baafede6ee5475bc5844096eba8a9", - "reference": "4acb8f89626baafede6ee5475bc5844096eba8a9", + "url": "https://api.github.com/repos/doctrine/common/zipball/30e33f60f64deec87df728c02b107f82cdafad9d", + "reference": "30e33f60f64deec87df728c02b107f82cdafad9d", "shasum": "" }, "require": { - "doctrine/annotations": "1.*", - "doctrine/cache": "1.*", - "doctrine/collections": "1.*", - "doctrine/inflector": "1.*", - "doctrine/lexer": "1.*", - "php": "~5.6|~7.0" + "doctrine/annotations": "^1.0", + "doctrine/cache": "^1.0", + "doctrine/collections": "^1.0", + "doctrine/event-manager": "^1.0", + "doctrine/inflector": "^1.0", + "doctrine/lexer": "^1.0", + "doctrine/persistence": "^1.1", + "doctrine/reflection": "^1.0", + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "^5.4.6" + "doctrine/coding-standard": "^1.0", + "phpunit/phpunit": "^6.3", + "squizlabs/php_codesniffer": "^3.0", + "symfony/phpunit-bridge": "^4.0.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.7.x-dev" + "dev-master": "2.10.x-dev" } }, "autoload": { @@ -372,40 +385,48 @@ { "name": "Johannes Schmitt", "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" } ], - "description": "Common Library for Doctrine projects", - "homepage": "http://www.doctrine-project.org", + "description": "PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projects depend on such as better reflection support, persistence interfaces, proxies, event system and much more.", + "homepage": "https://www.doctrine-project.org/projects/common.html", "keywords": [ - "annotations", - "collections", - "eventmanager", - "persistence", - "spl" + "common", + "doctrine", + "php" ], - "time": "2017-07-22 08:35:12" + "time": "2018-11-21T01:24:55+00:00" }, { "name": "doctrine/dbal", - "version": "v2.5.13", + "version": "v2.9.2", "source": { "type": "git", "url": "https://github.com/doctrine/dbal.git", - "reference": "729340d8d1eec8f01bff708e12e449a3415af873" + "reference": "22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/729340d8d1eec8f01bff708e12e449a3415af873", - "reference": "729340d8d1eec8f01bff708e12e449a3415af873", + "url": "https://api.github.com/repos/doctrine/dbal/zipball/22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9", + "reference": "22800bd651c1d8d2a9719e2a3dc46d5108ebfcc9", "shasum": "" }, "require": { - "doctrine/common": ">=2.4,<2.8-dev", - "php": ">=5.3.2" + "doctrine/cache": "^1.0", + "doctrine/event-manager": "^1.0", + "ext-pdo": "*", + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "4.*", - "symfony/console": "2.*||^3.0" + "doctrine/coding-standard": "^5.0", + "jetbrains/phpstorm-stubs": "^2018.1.2", + "phpstan/phpstan": "^0.10.1", + "phpunit/phpunit": "^7.4", + "symfony/console": "^2.0.5|^3.0|^4.0", + "symfony/phpunit-bridge": "^3.4.5|^4.0.5" }, "suggest": { "symfony/console": "For helpful console commands such as SQL execution and import of files." @@ -416,12 +437,13 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.5.x-dev" + "dev-master": "2.9.x-dev", + "dev-develop": "3.0.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\DBAL\\": "lib/" + "psr-4": { + "Doctrine\\DBAL\\": "lib/Doctrine/DBAL" } }, "notification-url": "https://packagist.org/downloads/", @@ -446,28 +468,32 @@ "email": "jonwage@gmail.com" } ], - "description": "Database Abstraction Layer", - "homepage": "http://www.doctrine-project.org", + "description": "Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.", + "homepage": "https://www.doctrine-project.org/projects/dbal.html", "keywords": [ + "abstraction", "database", "dbal", + "mysql", "persistence", + "pgsql", + "php", "queryobject" ], - "time": "2017-07-22 20:44:48" + "time": "2018-12-31T03:27:51+00:00" }, { "name": "doctrine/doctrine-bundle", - "version": "1.10.0", + "version": "1.10.2", "source": { "type": "git", "url": "https://github.com/doctrine/DoctrineBundle.git", - "reference": "82d2c63cd09acbde2332f55d9aa7b28aefe4983d" + "reference": "1f99e6645030542079c57d4680601a4a8778a1bd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/82d2c63cd09acbde2332f55d9aa7b28aefe4983d", - "reference": "82d2c63cd09acbde2332f55d9aa7b28aefe4983d", + "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/1f99e6645030542079c57d4680601a4a8778a1bd", + "reference": "1f99e6645030542079c57d4680601a4a8778a1bd", "shasum": "" }, "require": { @@ -539,7 +565,7 @@ "orm", "persistence" ], - "time": "2018-11-30 13:53:17" + "time": "2019-02-06T13:18:04+00:00" }, { "name": "doctrine/doctrine-cache-bundle", @@ -630,37 +656,111 @@ "cache", "caching" ], - "time": "2018-11-09 06:25:35" + "time": "2018-11-09T06:25:35+00:00" + }, + { + "name": "doctrine/event-manager", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/event-manager.git", + "reference": "a520bc093a0170feeb6b14e9d83f3a14452e64b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/a520bc093a0170feeb6b14e9d83f3a14452e64b3", + "reference": "a520bc093a0170feeb6b14e9d83f3a14452e64b3", + "shasum": "" + }, + "require": { + "php": "^7.1" + }, + "conflict": { + "doctrine/common": "<2.9@dev" + }, + "require-dev": { + "doctrine/coding-standard": "^4.0", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "lib/Doctrine/Common" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "Doctrine Event Manager component", + "homepage": "https://www.doctrine-project.org/projects/event-manager.html", + "keywords": [ + "event", + "eventdispatcher", + "eventmanager" + ], + "time": "2018-06-11T11:59:03+00:00" }, { "name": "doctrine/inflector", - "version": "v1.1.0", + "version": "v1.3.0", "source": { "type": "git", "url": "https://github.com/doctrine/inflector.git", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae" + "reference": "5527a48b7313d15261292c149e55e26eae771b0a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/90b2128806bfde671b6952ab8bea493942c1fdae", - "reference": "90b2128806bfde671b6952ab8bea493942c1fdae", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/5527a48b7313d15261292c149e55e26eae771b0a", + "reference": "5527a48b7313d15261292c149e55e26eae771b0a", "shasum": "" }, "require": { - "php": ">=5.3.2" + "php": "^7.1" }, "require-dev": { - "phpunit/phpunit": "4.*" + "phpunit/phpunit": "^6.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" + "psr-4": { + "Doctrine\\Common\\Inflector\\": "lib/Doctrine/Common/Inflector" } }, "notification-url": "https://packagist.org/downloads/", @@ -697,36 +797,38 @@ "singularize", "string" ], - "time": "2015-11-06 14:35:42" + "time": "2018-01-09T20:05:19+00:00" }, { "name": "doctrine/instantiator", - "version": "1.0.5", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d" + "reference": "a2c590166b2133a4633738648b6b064edae0814a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/8e884e78f9f0eb1329e445619e04456e64d8051d", - "reference": "8e884e78f9f0eb1329e445619e04456e64d8051d", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/a2c590166b2133a4633738648b6b064edae0814a", + "reference": "a2c590166b2133a4633738648b6b064edae0814a", "shasum": "" }, "require": { - "php": ">=5.3,<8.0-DEV" + "php": "^7.1" }, "require-dev": { - "athletic/athletic": "~0.1.8", + "doctrine/coding-standard": "^6.0", "ext-pdo": "*", "ext-phar": "*", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~2.0" + "phpbench/phpbench": "^0.13", + "phpstan/phpstan-phpunit": "^0.11", + "phpstan/phpstan-shim": "^0.11", + "phpunit/phpunit": "^7.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.2.x-dev" } }, "autoload": { @@ -746,12 +848,12 @@ } ], "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors", - "homepage": "https://github.com/doctrine/instantiator", + "homepage": "https://www.doctrine-project.org/projects/instantiator.html", "keywords": [ "constructor", "instantiate" ], - "time": "2015-06-14 21:17:01" + "time": "2019-03-17T17:37:11+00:00" }, { "name": "doctrine/lexer", @@ -805,42 +907,44 @@ "lexer", "parser" ], - "time": "2014-09-09 13:34:57" + "time": "2014-09-09T13:34:57+00:00" }, { "name": "doctrine/orm", - "version": "v2.5.14", + "version": "v2.6.3", "source": { "type": "git", "url": "https://github.com/doctrine/orm.git", - "reference": "810a7baf81462a5ddf10e8baa8cb94b6eec02754" + "reference": "434820973cadf2da2d66e7184be370084cc32ca8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/orm/zipball/810a7baf81462a5ddf10e8baa8cb94b6eec02754", - "reference": "810a7baf81462a5ddf10e8baa8cb94b6eec02754", + "url": "https://api.github.com/repos/doctrine/orm/zipball/434820973cadf2da2d66e7184be370084cc32ca8", + "reference": "434820973cadf2da2d66e7184be370084cc32ca8", "shasum": "" }, "require": { - "doctrine/cache": "~1.4", - "doctrine/collections": "~1.2", - "doctrine/common": ">=2.5-dev,<2.9-dev", - "doctrine/dbal": ">=2.5-dev,<2.7-dev", - "doctrine/instantiator": "^1.0.1", + "doctrine/annotations": "~1.5", + "doctrine/cache": "~1.6", + "doctrine/collections": "^1.4", + "doctrine/common": "^2.7.1", + "doctrine/dbal": "^2.6", + "doctrine/instantiator": "~1.1", "ext-pdo": "*", - "php": ">=5.4", - "symfony/console": "~2.5|~3.0|~4.0" + "php": "^7.1", + "symfony/console": "~3.0|~4.0" }, "require-dev": { - "phpunit/phpunit": "~4.0", - "symfony/yaml": "~2.3|~3.0|~4.0" + "doctrine/coding-standard": "^1.0", + "phpunit/phpunit": "^6.5", + "squizlabs/php_codesniffer": "^3.2", + "symfony/yaml": "~3.4|~4.0" }, "suggest": { "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" }, "bin": [ - "bin/doctrine", - "bin/doctrine.php" + "bin/doctrine" ], "type": "library", "extra": { @@ -849,8 +953,8 @@ } }, "autoload": { - "psr-0": { - "Doctrine\\ORM\\": "lib/" + "psr-4": { + "Doctrine\\ORM\\": "lib/Doctrine/ORM" } }, "notification-url": "https://packagist.org/downloads/", @@ -873,6 +977,10 @@ { "name": "Jonathan Wage", "email": "jonwage@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" } ], "description": "Object-Relational-Mapper for PHP", @@ -881,20 +989,177 @@ "database", "orm" ], - "time": "2017-12-17 02:57:51" + "time": "2018-11-20T23:46:46+00:00" + }, + { + "name": "doctrine/persistence", + "version": "1.1.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/persistence.git", + "reference": "3da7c9d125591ca83944f477e65ed3d7b4617c48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/persistence/zipball/3da7c9d125591ca83944f477e65ed3d7b4617c48", + "reference": "3da7c9d125591ca83944f477e65ed3d7b4617c48", + "shasum": "" + }, + "require": { + "doctrine/annotations": "^1.0", + "doctrine/cache": "^1.0", + "doctrine/collections": "^1.0", + "doctrine/event-manager": "^1.0", + "doctrine/reflection": "^1.0", + "php": "^7.1" + }, + "conflict": { + "doctrine/common": "<2.10@dev" + }, + "require-dev": { + "doctrine/coding-standard": "^5.0", + "phpstan/phpstan": "^0.8", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "lib/Doctrine/Common" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.", + "homepage": "https://doctrine-project.org/projects/persistence.html", + "keywords": [ + "mapper", + "object", + "odm", + "orm", + "persistence" + ], + "time": "2019-04-23T08:28:24+00:00" + }, + { + "name": "doctrine/reflection", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/reflection.git", + "reference": "02538d3f95e88eb397a5f86274deb2c6175c2ab6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/reflection/zipball/02538d3f95e88eb397a5f86274deb2c6175c2ab6", + "reference": "02538d3f95e88eb397a5f86274deb2c6175c2ab6", + "shasum": "" + }, + "require": { + "doctrine/annotations": "^1.0", + "ext-tokenizer": "*", + "php": "^7.1" + }, + "require-dev": { + "doctrine/coding-standard": "^4.0", + "doctrine/common": "^2.8", + "phpstan/phpstan": "^0.9.2", + "phpstan/phpstan-phpunit": "^0.9.4", + "phpunit/phpunit": "^7.0", + "squizlabs/php_codesniffer": "^3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Doctrine\\Common\\": "lib/Doctrine/Common" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + }, + { + "name": "Marco Pivetta", + "email": "ocramius@gmail.com" + } + ], + "description": "Doctrine Reflection component", + "homepage": "https://www.doctrine-project.org/projects/reflection.html", + "keywords": [ + "reflection" + ], + "time": "2018-06-14T14:45:07+00:00" }, { "name": "erusev/parsedown", - "version": "1.7.1", + "version": "1.7.3", "source": { "type": "git", "url": "https://github.com/erusev/parsedown.git", - "reference": "92e9c27ba0e74b8b028b111d1b6f956a15c01fc1" + "reference": "6d893938171a817f4e9bc9e86f2da1e370b7bcd7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/erusev/parsedown/zipball/92e9c27ba0e74b8b028b111d1b6f956a15c01fc1", - "reference": "92e9c27ba0e74b8b028b111d1b6f956a15c01fc1", + "url": "https://api.github.com/repos/erusev/parsedown/zipball/6d893938171a817f4e9bc9e86f2da1e370b7bcd7", + "reference": "6d893938171a817f4e9bc9e86f2da1e370b7bcd7", "shasum": "" }, "require": { @@ -927,7 +1192,7 @@ "markdown", "parser" ], - "time": "2018-03-08 01:11:30" + "time": "2019-03-17T18:48:37+00:00" }, { "name": "erusev/parsedown-extra", @@ -971,7 +1236,7 @@ "parsedown", "parser" ], - "time": "2015-11-01 10:19:22" + "time": "2015-11-01T10:19:22+00:00" }, { "name": "fig/link-util", @@ -1025,7 +1290,7 @@ "psr-13", "rest" ], - "time": "2016-10-17 18:31:11" + "time": "2016-10-17T18:31:11+00:00" }, { "name": "friendsofsymfony/user-bundle", @@ -1101,20 +1366,20 @@ "keywords": [ "User management" ], - "time": "2018-03-08 08:59:27" + "time": "2018-03-08T08:59:27+00:00" }, { "name": "gedmo/doctrine-extensions", - "version": "v2.4.36", + "version": "v2.4.37", "source": { "type": "git", "url": "https://github.com/Atlantic18/DoctrineExtensions.git", - "reference": "87c78ff9fd4b90460386f753d95622f6fbbfcb27" + "reference": "5dd471f656e46d815f063bf3f12c667649ec7ffb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Atlantic18/DoctrineExtensions/zipball/87c78ff9fd4b90460386f753d95622f6fbbfcb27", - "reference": "87c78ff9fd4b90460386f753d95622f6fbbfcb27", + "url": "https://api.github.com/repos/Atlantic18/DoctrineExtensions/zipball/5dd471f656e46d815f063bf3f12c667649ec7ffb", + "reference": "5dd471f656e46d815f063bf3f12c667649ec7ffb", "shasum": "" }, "require": { @@ -1182,7 +1447,7 @@ "tree", "uploadable" ], - "time": "2018-07-26 12:16:35" + "time": "2019-03-17T18:16:12+00:00" }, { "name": "incenteev/composer-parameter-handler", @@ -1233,7 +1498,7 @@ "keywords": [ "parameters management" ], - "time": "2018-02-13 18:05:56" + "time": "2018-02-13T18:05:56+00:00" }, { "name": "jdorn/sql-formatter", @@ -1283,7 +1548,7 @@ "highlight", "sql" ], - "time": "2014-01-12 16:20:24" + "time": "2014-01-12T16:20:24+00:00" }, { "name": "jeremyjumeau/parsedown-bundle", @@ -1337,7 +1602,7 @@ "symfony3", "twig" ], - "time": "2017-10-02 14:39:40" + "time": "2017-10-02T14:39:40+00:00" }, { "name": "kriswallsmith/buzz", @@ -1404,7 +1669,7 @@ "curl", "http client" ], - "time": "2019-04-17 18:49:52" + "time": "2019-04-17T18:49:52+00:00" }, { "name": "league/html-to-markdown", @@ -1468,7 +1733,7 @@ "html", "markdown" ], - "time": "2018-12-24 17:21:44" + "time": "2018-12-24T17:21:44+00:00" }, { "name": "monolog/monolog", @@ -1546,7 +1811,7 @@ "logging", "psr-3" ], - "time": "2018-11-05 09:00:11" + "time": "2018-11-05T09:00:11+00:00" }, { "name": "paragonie/random_compat", @@ -1595,7 +1860,7 @@ "pseudorandom", "random" ], - "time": "2019-01-03 20:59:08" + "time": "2019-01-03T20:59:08+00:00" }, { "name": "php-http/httplug", @@ -1652,7 +1917,7 @@ "client", "http" ], - "time": "2018-10-31 09:14:44" + "time": "2018-10-31T09:14:44+00:00" }, { "name": "php-http/promise", @@ -1702,7 +1967,7 @@ "keywords": [ "promise" ], - "time": "2016-01-26 13:27:02" + "time": "2016-01-26T13:27:02+00:00" }, { "name": "presta/sitemap-bundle", @@ -1765,7 +2030,7 @@ "symfony", "xml" ], - "time": "2019-04-01 07:37:29" + "time": "2019-04-01T07:37:29+00:00" }, { "name": "psr/cache", @@ -1811,7 +2076,7 @@ "psr", "psr-6" ], - "time": "2016-08-06 20:24:11" + "time": "2016-08-06T20:24:11+00:00" }, { "name": "psr/container", @@ -1860,7 +2125,7 @@ "container-interop", "psr" ], - "time": "2017-02-14 16:28:37" + "time": "2017-02-14T16:28:37+00:00" }, { "name": "psr/http-client", @@ -1909,7 +2174,7 @@ "psr", "psr-18" ], - "time": "2018-10-30 23:29:13" + "time": "2018-10-30T23:29:13+00:00" }, { "name": "psr/http-factory", @@ -1961,7 +2226,7 @@ "request", "response" ], - "time": "2018-07-30 21:54:04" + "time": "2018-07-30T21:54:04+00:00" }, { "name": "psr/http-message", @@ -2011,7 +2276,7 @@ "request", "response" ], - "time": "2016-08-06 14:39:51" + "time": "2016-08-06T14:39:51+00:00" }, { "name": "psr/link", @@ -2060,7 +2325,7 @@ "psr-13", "rest" ], - "time": "2016-10-28 16:06:13" + "time": "2016-10-28T16:06:13+00:00" }, { "name": "psr/log", @@ -2107,7 +2372,7 @@ "psr", "psr-3" ], - "time": "2018-11-20 15:27:04" + "time": "2018-11-20T15:27:04+00:00" }, { "name": "psr/simple-cache", @@ -2155,7 +2420,7 @@ "psr-16", "simple-cache" ], - "time": "2017-10-23 01:57:42" + "time": "2017-10-23T01:57:42+00:00" }, { "name": "sensio/buzz-bundle", @@ -2204,7 +2469,7 @@ "http client" ], "abandoned": "symfony/flex", - "time": "2016-03-15 10:06:41" + "time": "2016-03-15T10:06:41+00:00" }, { "name": "sensio/distribution-bundle", @@ -2256,45 +2521,47 @@ "configuration", "distribution" ], - "time": "2018-12-14 17:36:15" + "time": "2018-12-14T17:36:15+00:00" }, { "name": "sensio/framework-extra-bundle", - "version": "v5.2.4", + "version": "v5.3.1", "source": { "type": "git", "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", - "reference": "1fdf591c4b388e62dbb2579de89c1560b33f865d" + "reference": "5f75c4658b03301cba17baa15a840b57b72b4262" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/1fdf591c4b388e62dbb2579de89c1560b33f865d", - "reference": "1fdf591c4b388e62dbb2579de89c1560b33f865d", + "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/5f75c4658b03301cba17baa15a840b57b72b4262", + "reference": "5f75c4658b03301cba17baa15a840b57b72b4262", "shasum": "" }, "require": { - "doctrine/common": "^2.2", - "symfony/config": "^3.3|^4.0", - "symfony/dependency-injection": "^3.3|^4.0", - "symfony/framework-bundle": "^3.4|^4.0", - "symfony/http-kernel": "^3.3|^4.0" + "doctrine/annotations": "^1.0", + "doctrine/persistence": "^1.0", + "php": ">=7.1.3", + "symfony/config": "^3.4|^4.2", + "symfony/dependency-injection": "^3.4|^4.2", + "symfony/framework-bundle": "^3.4|^4.2", + "symfony/http-kernel": "^3.4|^4.2" }, "require-dev": { "doctrine/doctrine-bundle": "^1.6", "doctrine/orm": "^2.5", - "symfony/browser-kit": "^3.3|^4.0", - "symfony/dom-crawler": "^3.3|^4.0", - "symfony/expression-language": "^3.3|^4.0", - "symfony/finder": "^3.3|^4.0", + "nyholm/psr7": "^1.1", + "symfony/browser-kit": "^3.4|^4.2", + "symfony/dom-crawler": "^3.4|^4.2", + "symfony/expression-language": "^3.4|^4.2", + "symfony/finder": "^3.4|^4.2", "symfony/monolog-bridge": "^3.0|^4.0", "symfony/monolog-bundle": "^3.2", "symfony/phpunit-bridge": "^3.4.19|^4.1.8", - "symfony/psr-http-message-bridge": "^0.3", - "symfony/security-bundle": "^3.3|^4.0", - "symfony/twig-bundle": "^3.3|^4.0", - "symfony/yaml": "^3.3|^4.0", - "twig/twig": "~1.12|~2.0", - "zendframework/zend-diactoros": "^1.3" + "symfony/psr-http-message-bridge": "^1.1", + "symfony/security-bundle": "^3.4|^4.2", + "symfony/twig-bundle": "^3.4|^4.2", + "symfony/yaml": "^3.4|^4.2", + "twig/twig": "~1.12|~2.0" }, "suggest": { "symfony/expression-language": "", @@ -2304,7 +2571,7 @@ "type": "symfony-bundle", "extra": { "branch-alias": { - "dev-master": "5.2.x-dev" + "dev-master": "5.3.x-dev" } }, "autoload": { @@ -2327,7 +2594,7 @@ "annotations", "controllers" ], - "time": "2018-12-11 16:59:23" + "time": "2019-04-10T06:00:20+00:00" }, { "name": "sensiolabs/security-checker", @@ -2373,7 +2640,7 @@ } ], "description": "A security checker for your composer.lock", - "time": "2018-12-19 17:14:59" + "time": "2018-12-19T17:14:59+00:00" }, { "name": "stof/doctrine-extensions-bundle", @@ -2438,7 +2705,7 @@ "translatable", "tree" ], - "time": "2017-12-24 16:06:50" + "time": "2017-12-24T16:06:50+00:00" }, { "name": "swiftmailer/swiftmailer", @@ -2492,7 +2759,7 @@ "mail", "mailer" ], - "time": "2018-07-31 09:26:32" + "time": "2018-07-31T09:26:32+00:00" }, { "name": "symfony/asset", @@ -2548,7 +2815,7 @@ ], "description": "Symfony Asset Component", "homepage": "https://symfony.com", - "time": "2019-01-16 20:35:37" + "time": "2019-01-16T20:35:37+00:00" }, { "name": "symfony/flex", @@ -2597,7 +2864,7 @@ } ], "description": "Composer plugin for Symfony", - "time": "2019-04-16 10:04:15" + "time": "2019-04-16T10:04:15+00:00" }, { "name": "symfony/monolog-bundle", @@ -2660,20 +2927,20 @@ "log", "logging" ], - "time": "2018-11-04 09:58:13" + "time": "2018-11-04T09:58:13+00:00" }, { "name": "symfony/polyfill-apcu", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-apcu.git", - "reference": "19e1b73bf255265ad0b568f81766ae2a3266d8d2" + "reference": "a502face1da6a53289480166f24de2c3c68e5c3c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/19e1b73bf255265ad0b568f81766ae2a3266d8d2", - "reference": "19e1b73bf255265ad0b568f81766ae2a3266d8d2", + "url": "https://api.github.com/repos/symfony/polyfill-apcu/zipball/a502face1da6a53289480166f24de2c3c68e5c3c", + "reference": "a502face1da6a53289480166f24de2c3c68e5c3c", "shasum": "" }, "require": { @@ -2682,7 +2949,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2716,20 +2983,20 @@ "portable", "shim" ], - "time": "2018-08-06 14:22:27" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19" + "reference": "82ebae02209c21113908c229e9883c419720738a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/e3d826245268269cd66f8326bd8bc066687b4a19", - "reference": "e3d826245268269cd66f8326bd8bc066687b4a19", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/82ebae02209c21113908c229e9883c419720738a", + "reference": "82ebae02209c21113908c229e9883c419720738a", "shasum": "" }, "require": { @@ -2741,7 +3008,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2774,20 +3041,20 @@ "polyfill", "portable" ], - "time": "2018-08-06 14:22:27" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-intl-icu", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-icu.git", - "reference": "f22a90256d577c7ef7efad8df1f0201663d57644" + "reference": "999878a3a09d73cae157b0cf89bb6fb2cc073057" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/f22a90256d577c7ef7efad8df1f0201663d57644", - "reference": "f22a90256d577c7ef7efad8df1f0201663d57644", + "url": "https://api.github.com/repos/symfony/polyfill-intl-icu/zipball/999878a3a09d73cae157b0cf89bb6fb2cc073057", + "reference": "999878a3a09d73cae157b0cf89bb6fb2cc073057", "shasum": "" }, "require": { @@ -2832,20 +3099,20 @@ "portable", "shim" ], - "time": "2018-08-06 14:22:27" + "time": "2019-01-07T19:39:47+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494" + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/c79c051f5b3a46be09205c73b80b346e4153e494", - "reference": "c79c051f5b3a46be09205c73b80b346e4153e494", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/fe5e94c604826c35a32fa832f35bd036b6799609", + "reference": "fe5e94c604826c35a32fa832f35bd036b6799609", "shasum": "" }, "require": { @@ -2857,7 +3124,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2891,20 +3158,20 @@ "portable", "shim" ], - "time": "2018-09-21 13:07:52" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-php56", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "ff208829fe1aa48ab9af356992bb7199fed551af" + "reference": "f4dddbc5c3471e1b700a147a20ae17cdb72dbe42" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/ff208829fe1aa48ab9af356992bb7199fed551af", - "reference": "ff208829fe1aa48ab9af356992bb7199fed551af", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/f4dddbc5c3471e1b700a147a20ae17cdb72dbe42", + "reference": "f4dddbc5c3471e1b700a147a20ae17cdb72dbe42", "shasum": "" }, "require": { @@ -2914,7 +3181,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -2947,20 +3214,20 @@ "portable", "shim" ], - "time": "2018-09-21 06:26:08" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-php70", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php70.git", - "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224" + "reference": "bc4858fb611bda58719124ca079baff854149c89" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/6b88000cdd431cd2e940caa2cb569201f3f84224", - "reference": "6b88000cdd431cd2e940caa2cb569201f3f84224", + "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/bc4858fb611bda58719124ca079baff854149c89", + "reference": "bc4858fb611bda58719124ca079baff854149c89", "shasum": "" }, "require": { @@ -2970,7 +3237,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -3006,20 +3273,20 @@ "portable", "shim" ], - "time": "2018-09-21 06:26:08" + "time": "2019-02-06T07:57:58+00:00" }, { "name": "symfony/polyfill-util", - "version": "v1.10.0", + "version": "v1.11.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-util.git", - "reference": "3b58903eae668d348a7126f999b0da0f2f93611c" + "reference": "b46c6cae28a3106735323f00a0c38eccf2328897" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/3b58903eae668d348a7126f999b0da0f2f93611c", - "reference": "3b58903eae668d348a7126f999b0da0f2f93611c", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/b46c6cae28a3106735323f00a0c38eccf2328897", + "reference": "b46c6cae28a3106735323f00a0c38eccf2328897", "shasum": "" }, "require": { @@ -3028,7 +3295,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.9-dev" + "dev-master": "1.11-dev" } }, "autoload": { @@ -3058,7 +3325,7 @@ "polyfill", "shim" ], - "time": "2018-09-30 16:36:12" + "time": "2019-02-08T14:16:39+00:00" }, { "name": "symfony/swiftmailer-bundle", @@ -3117,7 +3384,7 @@ ], "description": "Symfony SwiftmailerBundle", "homepage": "http://symfony.com", - "time": "2017-10-19 01:06:41" + "time": "2017-10-19T01:06:41+00:00" }, { "name": "symfony/symfony", @@ -3272,11 +3539,11 @@ "keywords": [ "framework" ], - "time": "2019-04-17 15:57:27" + "time": "2019-04-17T15:57:27+00:00" }, { "name": "symfony/templating", - "version": "v4.2.5", + "version": "v4.2.7", "source": { "type": "git", "url": "https://github.com/symfony/templating.git", @@ -3328,25 +3595,26 @@ ], "description": "Symfony Templating Component", "homepage": "https://symfony.com", - "time": "2019-02-23 15:17:42" + "time": "2019-02-23T15:17:42+00:00" }, { "name": "twig/twig", - "version": "v1.36.0", + "version": "v2.8.1", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "730c9c4471b5152d23061feb02b03382264c8a15" + "reference": "91cc2594d3143761ce0399c1caffd0b500ffe5b9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/730c9c4471b5152d23061feb02b03382264c8a15", - "reference": "730c9c4471b5152d23061feb02b03382264c8a15", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/91cc2594d3143761ce0399c1caffd0b500ffe5b9", + "reference": "91cc2594d3143761ce0399c1caffd0b500ffe5b9", "shasum": "" }, "require": { - "php": ">=5.3.3", - "symfony/polyfill-ctype": "^1.8" + "php": "^7.0", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-mbstring": "^1.3" }, "require-dev": { "psr/container": "^1.0", @@ -3356,7 +3624,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.36-dev" + "dev-master": "2.8-dev" } }, "autoload": { @@ -3394,7 +3662,7 @@ "keywords": [ "templating" ], - "time": "2018-12-16 10:34:11" + "time": "2019-04-16T17:14:24+00:00" } ], "packages-dev": [ @@ -3450,20 +3718,20 @@ } ], "description": "This bundle generates code for you", - "time": "2017-12-07 15:36:41" + "time": "2017-12-07T15:36:41+00:00" }, { "name": "symfony/phpunit-bridge", - "version": "v3.4.21", + "version": "v3.4.26", "source": { "type": "git", "url": "https://github.com/symfony/phpunit-bridge.git", - "reference": "5dab0d4b2ac99ab22b447b615fdfdc10ec4af3d5" + "reference": "a43a2f6c465a2d99635fea0addbebddc3864ad97" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/5dab0d4b2ac99ab22b447b615fdfdc10ec4af3d5", - "reference": "5dab0d4b2ac99ab22b447b615fdfdc10ec4af3d5", + "url": "https://api.github.com/repos/symfony/phpunit-bridge/zipball/a43a2f6c465a2d99635fea0addbebddc3864ad97", + "reference": "a43a2f6c465a2d99635fea0addbebddc3864ad97", "shasum": "" }, "require": { @@ -3473,7 +3741,6 @@ "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0" }, "suggest": { - "ext-zip": "Zip support is required when using bin/simple-phpunit", "symfony/debug": "For tracking deprecated interfaces usages at runtime with DebugClassLoader" }, "bin": [ @@ -3516,7 +3783,7 @@ ], "description": "Symfony PHPUnit Bridge", "homepage": "https://symfony.com", - "time": "2019-01-01 13:45:19" + "time": "2019-04-16T09:03:16+00:00" } ], "aliases": [], diff --git a/config/bootstrap.php b/config/bootstrap.php new file mode 100644 index 0000000..25e4459 --- /dev/null +++ b/config/bootstrap.php @@ -0,0 +1,51 @@ +=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'; diff --git a/config/bundles.php b/config/bundles.php index 8c0ef37..4a85a95 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -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], ]; diff --git a/config/packages/buzz.yaml b/config/packages/buzz.yaml new file mode 100644 index 0000000..64fe575 --- /dev/null +++ b/config/packages/buzz.yaml @@ -0,0 +1,54 @@ +# 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 } diff --git a/config/packages/dev/monolog.yaml b/config/packages/dev/monolog.yaml new file mode 100644 index 0000000..b1998da --- /dev/null +++ b/config/packages/dev/monolog.yaml @@ -0,0 +1,19 @@ +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"] diff --git a/config/packages/dev/swiftmailer.yaml b/config/packages/dev/swiftmailer.yaml new file mode 100644 index 0000000..b98158e --- /dev/null +++ b/config/packages/dev/swiftmailer.yaml @@ -0,0 +1,4 @@ +# See https://symfony.com/doc/current/email/dev_environment.html +swiftmailer: + # send all emails to a specific address + #delivery_addresses: ['me@example.com'] diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml new file mode 100644 index 0000000..9521fad --- /dev/null +++ b/config/packages/doctrine.yaml @@ -0,0 +1,29 @@ +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 diff --git a/config/packages/prod/doctrine.yaml b/config/packages/prod/doctrine.yaml new file mode 100644 index 0000000..0a7c53b --- /dev/null +++ b/config/packages/prod/doctrine.yaml @@ -0,0 +1,32 @@ +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 diff --git a/config/packages/prod/monolog.yaml b/config/packages/prod/monolog.yaml new file mode 100644 index 0000000..96dbf96 --- /dev/null +++ b/config/packages/prod/monolog.yaml @@ -0,0 +1,25 @@ +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"] diff --git a/config/packages/security_checker.yaml b/config/packages/security_checker.yaml new file mode 100644 index 0000000..615e2d7 --- /dev/null +++ b/config/packages/security_checker.yaml @@ -0,0 +1,8 @@ +services: + _defaults: + autowire: true + autoconfigure: true + + SensioLabs\Security\SecurityChecker: ~ + + SensioLabs\Security\Command\SecurityCheckerCommand: ~ diff --git a/config/packages/sensio_framework_extra.yaml b/config/packages/sensio_framework_extra.yaml new file mode 100644 index 0000000..1821ccc --- /dev/null +++ b/config/packages/sensio_framework_extra.yaml @@ -0,0 +1,3 @@ +sensio_framework_extra: + router: + annotations: false diff --git a/config/packages/stof_doctrine_extensions.yaml b/config/packages/stof_doctrine_extensions.yaml new file mode 100644 index 0000000..c83f3b1 --- /dev/null +++ b/config/packages/stof_doctrine_extensions.yaml @@ -0,0 +1,4 @@ +# 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 diff --git a/config/packages/swiftmailer.yaml b/config/packages/swiftmailer.yaml new file mode 100644 index 0000000..cae6508 --- /dev/null +++ b/config/packages/swiftmailer.yaml @@ -0,0 +1,3 @@ +swiftmailer: + url: '%env(MAILER_URL)%' + spool: { type: 'memory' } diff --git a/config/packages/test/monolog.yaml b/config/packages/test/monolog.yaml new file mode 100644 index 0000000..2762653 --- /dev/null +++ b/config/packages/test/monolog.yaml @@ -0,0 +1,7 @@ +monolog: + handlers: + main: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug + channels: ["!event"] diff --git a/config/packages/test/swiftmailer.yaml b/config/packages/test/swiftmailer.yaml new file mode 100644 index 0000000..f438078 --- /dev/null +++ b/config/packages/test/swiftmailer.yaml @@ -0,0 +1,2 @@ +swiftmailer: + disable_delivery: true diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml new file mode 100644 index 0000000..d49a502 --- /dev/null +++ b/config/routes/annotations.yaml @@ -0,0 +1,3 @@ +controllers: + resource: ../../src/Controller/ + type: annotation diff --git a/config/services_test.yaml b/config/services_test.yaml new file mode 100644 index 0000000..876c36b --- /dev/null +++ b/config/services_test.yaml @@ -0,0 +1,9 @@ +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' diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 5a12e67..6483dae 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -10,6 +10,13 @@ + + + + + + + diff --git a/src/API/ClichesBundle/Controller/ClichesController.php b/src/API/ClichesBundle/Controller/ClichesController.php index 449cc55..6b23e80 100644 --- a/src/API/ClichesBundle/Controller/ClichesController.php +++ b/src/API/ClichesBundle/Controller/ClichesController.php @@ -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); diff --git a/src/API/ClichesBundle/Controller/ProposalChoiceController.php b/src/API/ClichesBundle/Controller/ProposalChoiceController.php index 126891b..e652ba3 100644 --- a/src/API/ClichesBundle/Controller/ProposalChoiceController.php +++ b/src/API/ClichesBundle/Controller/ProposalChoiceController.php @@ -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); diff --git a/src/API/ClichesBundle/Controller/ProposalGalleryController.php b/src/API/ClichesBundle/Controller/ProposalGalleryController.php index a8e93fb..63be53a 100644 --- a/src/API/ClichesBundle/Controller/ProposalGalleryController.php +++ b/src/API/ClichesBundle/Controller/ProposalGalleryController.php @@ -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); } + /** + * @param $playerProposal + * @param $teaching + * @param $entity + * @param $view + * @param $propertyContainer + * @param $values + * @param Request $request + * @return Response + */ public function generateMessengerFormat($playerProposal, $teaching, $entity, $view, $propertyContainer, $values, Request $request) { $image = $this->get('data_image.image')->getOneByView($view); diff --git a/src/API/ClichesBundle/Controller/QueryController.php b/src/API/ClichesBundle/Controller/QueryController.php index 45a58d9..7eafc74 100644 --- a/src/API/ClichesBundle/Controller/QueryController.php +++ b/src/API/ClichesBundle/Controller/QueryController.php @@ -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 QueryController extends Controller { + /** + * @param Request $request + * @return Response + */ public function indexAction(Request $request) { $messages = [ @@ -34,6 +39,11 @@ class QueryController extends Controller return $response; } + /** + * @param $entity + * @param $oldProperties + * @return mixed + */ public function getProperty($entity, $oldProperties) { foreach($this->get('data_data.entity')->getFields($entity) as $fieldContainer) { if(!in_array($fieldContainer['field'], $oldProperties)) { @@ -42,8 +52,15 @@ class QueryController extends Controller } } - // 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'); @@ -61,6 +78,14 @@ class QueryController 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); @@ -77,6 +102,15 @@ class QueryController 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); diff --git a/src/API/ClichesBundle/Controller/ResultController.php b/src/API/ClichesBundle/Controller/ResultController.php index 153930f..0347e4a 100644 --- a/src/API/ClichesBundle/Controller/ResultController.php +++ b/src/API/ClichesBundle/Controller/ResultController.php @@ -5,6 +5,7 @@ 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 ResultController extends Controller { @@ -17,6 +18,10 @@ class ResultController extends Controller * "proposal_choice_value_id"="\d+" * } * ) + * @param $proposal_id + * @param $proposal_choice_value_id + * @param Request $request + * @return Response */ public function indexAction($proposal_id, $proposal_choice_value_id, Request $request) { diff --git a/src/API/ClichesBundle/Controller/SelectionController.php b/src/API/ClichesBundle/Controller/SelectionController.php index 2e7970c..82ae8e7 100644 --- a/src/API/ClichesBundle/Controller/SelectionController.php +++ b/src/API/ClichesBundle/Controller/SelectionController.php @@ -6,6 +6,7 @@ use CLICHES\PlayerBundle\Entity\PlayerOeuvre; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SelectionController extends Controller { @@ -17,6 +18,8 @@ class SelectionController extends Controller * "session_id"="\d+" * } * ) + * @param $session_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response */ public function indexAction($session_id) { diff --git a/src/API/ClichesBundle/Controller/SessionController.php b/src/API/ClichesBundle/Controller/SessionController.php index c81c016..527fc90 100644 --- a/src/API/ClichesBundle/Controller/SessionController.php +++ b/src/API/ClichesBundle/Controller/SessionController.php @@ -5,6 +5,7 @@ namespace API\ClichesBundle\Controller; use CLICHES\PlayerBundle\Entity\PlayerSession; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SessionController extends Controller { @@ -20,6 +21,12 @@ class SessionController extends Controller * "teaching_name"="\S{0,255}", * } * ) + * @param $user_id + * @param $user_locale + * @param $user_ref + * @param $user_timezone + * @param $teaching_name + * @return Response */ public function indexAction($user_id, $user_locale, $user_ref, $user_timezone, $teaching_name) { diff --git a/src/API/DataBundle/Controller/ItemController.php b/src/API/DataBundle/Controller/ItemController.php index 63f98a7..10fae9b 100644 --- a/src/API/DataBundle/Controller/ItemController.php +++ b/src/API/DataBundle/Controller/ItemController.php @@ -6,6 +6,7 @@ use DATA\DataBundle\Entity\EntityProperty; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ItemController extends Controller { @@ -18,6 +19,9 @@ class ItemController extends Controller * "context"="webapp|messenger" * } * ) + * @param $entity_id + * @param $context + * @return Response */ public function getAction($entity_id, $context) { @@ -37,6 +41,10 @@ class ItemController extends Controller return $response; } + /** + * @param $entity_id + * @return array + */ public function loadData($entity_id) { $entity = $this->get('data_data.entity')->find('one', ['id' => $entity_id], null); @@ -118,6 +126,10 @@ class ItemController extends Controller return $array; } + /** + * @param $array + * @return array + */ public function getMessengerJson($array) { @@ -152,6 +164,10 @@ class ItemController extends Controller return $return; } + /** + * @param $array + * @return string + */ public function getDescription($array) { $description = []; if(isset($array['creator'])) {$description[] = $array['creator'];} @@ -169,6 +185,7 @@ class ItemController extends Controller * "/items/get/all/%key_hda%", * name="api_data_item_get_all" * ) + * @return Response */ public function getAllAction() { @@ -190,6 +207,8 @@ class ItemController extends Controller * "/item/set/%key_hda_set%", * name="api_data_item_set" * ) + * @param Request $request + * @return bool|string|Response */ public function setAction(Request $request) { @@ -228,6 +247,8 @@ class ItemController extends Controller * "/item/reset/%key_hda_set%", * name="api_data_item_reset" * ) + * @param Request $request + * @return bool|Response */ public function resetAction(Request $request) { diff --git a/src/API/DataBundle/Controller/SearchController.php b/src/API/DataBundle/Controller/SearchController.php index 3b5f9cf..c18587d 100644 --- a/src/API/DataBundle/Controller/SearchController.php +++ b/src/API/DataBundle/Controller/SearchController.php @@ -4,6 +4,7 @@ namespace API\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SearchController extends Controller { @@ -12,6 +13,7 @@ class SearchController extends Controller * "/search", * name="api_data_search_query" * ) + * @return Response */ public function queryAction() { @@ -45,6 +47,10 @@ class SearchController extends Controller return $response; } + /** + * @param $query + * @return array + */ public function loadData($query) { $items = $this->get('data_search.search')->search($query, null); $results = []; @@ -60,6 +66,10 @@ class SearchController extends Controller return ['query' => $query, 'results' => $results]; } + /** + * @param $array + * @return array + */ public function getMessengerJson($array) { $query = $array['query']; @@ -101,6 +111,10 @@ class SearchController extends Controller return $return; } + /** + * @param $array + * @return string + */ public function getDescription($array) { $description = []; if(isset($array['creator'])) {$description[] = $array['creator'];} diff --git a/src/API/DataBundle/Controller/TestController.php b/src/API/DataBundle/Controller/TestController.php index f4357df..e32bd22 100644 --- a/src/API/DataBundle/Controller/TestController.php +++ b/src/API/DataBundle/Controller/TestController.php @@ -5,6 +5,7 @@ namespace API\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestController extends Controller { @@ -13,6 +14,8 @@ class TestController extends Controller * "/test/get/%key_hda%", * name="api_data_test_get" * ) + * @param Request $request + * @return Response */ public function getAction(Request $request) { diff --git a/src/AppBundle/AppBundle.php b/src/AppBundle/AppBundle.php deleted file mode 100644 index 05123b6..0000000 --- a/src/AppBundle/AppBundle.php +++ /dev/null @@ -1,9 +0,0 @@ -em = $EntityManager; - - parent::__construct(); - }*/ - - protected function configure() - { - $this - ->setDescription('Check the appointments') - ->setHelp('This command checks the appointments and sends emails if necessary') - ; - } - - protected function execute(InputInterface $input, OutputInterface $output) - { - $entityManager = $this->getContainer()->get('doctrine')->getEntityManager(); - /** @var $entityManager EntityManager */ - $appointmentRepo = $entityManager->getRepository('AppBundle:Appointment'); - $appointments = $appointmentRepo->findBy(array('sentReminder' => false)); - - foreach($appointments as $appointment) { - /** @var $appointment Appointment */ - if(strtotime($appointment->getNextReminder()->format('Y-m-d H:i:s')) <= strtotime('now') ) { - // markdown mangement for notes - $firstNote = $appointment->getNote(); - $appointment->setNote( $this->getContainer()->get('parsedown')->text($appointment->getNote())); - - $mails = [$appointment->getEmailPlanner()]; - $mails = array_merge($mails, $appointment->getEmailsRecipient()); - - if($appointment->getSubject() != null) { - $subject = '[Marre des lapins ?] Votre rendez-vous '.$appointment->getSubject().' le '.$appointment->getDate()->format('d-m-Y').' à '. $appointment->getDate()->format('H:i'); - } else { - $subject = '[Marre des lapins ?] Vous avez rendez-vous le '.$appointment->getDate()->format('d-m-Y').' à '. $appointment->getDate()->format('H:i'); - } - - $mailer = $this->getContainer()->get('mailer'); - $message = (new \Swift_Message($subject)) - ->setFrom("contact@karl-pineau.fr") - ->setTo($mails) - ->setReplyTo($mails) - ->setCharset('utf-8') - ->setContentType('text/html') - ->setBody($this->renderTemplate($appointment), 'text/html'); - $mailer->send($message); - - $appointment->setSentReminder(true); - $appointment->setNote($firstNote); - $output->writeln('Sent mail for '.$appointment->getPublicId()); - } - } - $entityManager->flush(); - } - - public function renderTemplate($appointment) - { - return $this->getContainer()->get('twig')->render( - 'default/mail.html.twig', - array( - 'appointment' => $appointment - ) - ); - } -} \ No newline at end of file diff --git a/src/AppBundle/Command/TestEmailCommand.php b/src/AppBundle/Command/TestEmailCommand.php deleted file mode 100644 index e4ddf64..0000000 --- a/src/AppBundle/Command/TestEmailCommand.php +++ /dev/null @@ -1,37 +0,0 @@ -setName('test:email') - ->setDescription('It tests email sending.') - ->setHelp('It tests email sending.') - ->addArgument('recipient', InputArgument::REQUIRED, 'The email address where to send an email') - ; - } - - protected function execute(InputInterface $input, OutputInterface $output) - { - $mailer = $this->getContainer()->get('mailer'); - $message = (new \Swift_Message('Hello Email')) - ->setFrom("contact@karl-pineau.fr") - ->setTo($input->getArgument('recipient')) - ->setBody("If you receive this email, then the system is fully functional.") - ; - $mailer->send($message); - - $output->writeln(['Email sent to '.$input->getArgument('recipient').'']); - } -} \ No newline at end of file diff --git a/src/AppBundle/Controller/AdminController.php b/src/AppBundle/Controller/AdminController.php deleted file mode 100644 index 56a1d8f..0000000 --- a/src/AppBundle/Controller/AdminController.php +++ /dev/null @@ -1,49 +0,0 @@ -getDoctrine()->getManager(); - - $appointmentRepo = $entityManager->getRepository('AppBundle:Appointment'); - $appointments = $appointmentRepo->findAll(); - - - return $this->render('admin/index.html.twig', [ - 'appointments' => $appointments, - ]); - } - - /** - * @Route("/admin/clean", name="admin_clean") - */ - public function removeAction(Request $request) - { - $entityManager = $this->getDoctrine()->getManager(); - $appointmentRepo = $entityManager->getRepository('AppBundle:Appointment'); - $appointments = $appointmentRepo->findAll(); - /** @var $appointments Appointment[] */ - - foreach($appointments as $appointment) { - $entityManager->remove($appointment); - $entityManager->flush(); - } - - return $this->redirectToRoute('admin_homepage'); - } -} diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php deleted file mode 100644 index 34a18b4..0000000 --- a/src/AppBundle/Controller/DefaultController.php +++ /dev/null @@ -1,181 +0,0 @@ -createForm(AppointmentType::class, $appointment); - - $form->handleRequest($request); - if ($form->isSubmitted() && $form->isValid()) { - $appointment = $form->getData(); - $appointment->setSentReminder(false); - $appointment->setPublicId(uniqid()); - - $appointment->setDateDate(new \DateTime($form["dateDate"]->getData())); - $appointment->setDateTime(new \DateTime($form["dateTime"]->getData())); - - // generate email field - $appointment->setEmailsRecipient(explode(',', $form["emailsRecipient"]->getData())); - $appointment->setEmailsNumber(count(explode(',', $form["emailsRecipient"]->getData()))+1); - - // generate meeting date field - $appointmentDate = new \DateTime($form["dateDate"]->getData()." ".$form["dateTime"]->getData()); - $appointment->setDate($appointmentDate); - - // generate date reminder field - $appointmentDateToSub = new \DateTime($form["dateDate"]->getData()." ".$form["dateTime"]->getData()); - $appointmentReminder = date_sub($appointmentDateToSub, date_interval_create_from_date_string($form["reminderCount"]->getData().' seconds')); - $appointment->setNextReminder(new \DateTime(date_format($appointmentReminder, 'Y-m-d H:s:i'))); - - // generate random private ID - $appointment->setPrivateId($passwordService->getRandomPassword()); - - $entityManager = $this->getDoctrine()->getManager(); - $entityManager->persist($appointment); - $entityManager->flush(); - - - if($appointment->getSubject() != null) { - $subject = '[Marre des lapins ?] Confirmation de votre rappel '.$appointment->getSubject(); - } else { - $subject = '[Marre des lapins ?] Confirmation de votre rappel'; - } - - // send confirmation email - $message = (new \Swift_Message($subject)) - ->setFrom("contact@karl-pineau.fr") - ->setTo($appointment->getEmailPlanner()) - ->setCharset('utf-8') - ->setContentType('text/html') - ->setBody($this->render("default/confirmation.html.twig", array('appointment' => $appointment)), 'text/html'); - $mailer->send($message); - - return $this->redirectToRoute('appointment_planned', array('appointment_id' => $appointment->getPublicId())); - } - - return $this->render('default/index.html.twig', [ - 'form' => $form->createView(), - ]); - } - - /** - * @Route("/planned/{appointment_id}", name="appointment_planned") - */ - public function appointmentPlannedAction($appointment_id) - { - $entityManager = $this->getDoctrine()->getManager(); - $appointment = null; - - if($appointment_id != null) { - $appointmentRepo = $entityManager->getRepository('AppBundle:Appointment'); - $appointment = $appointmentRepo->findOneByPublicId($appointment_id); - - // markdown mangement for notes - $appointment->setNote( $this->get('parsedown')->text($appointment->getNote())); - } - - return $this->render('planned/index.html.twig', [ - 'appointment' => $appointment, - ]); - } - - /** - * @Route("/edit/{appointment_id}", name="appointment_edit") - */ - public function editAction($appointment_id, Request $request) - { - $entityManager = $this->getDoctrine()->getManager(); - $appointmentRepo = $entityManager->getRepository('AppBundle:Appointment'); - $appointment = $appointmentRepo->findOneByPublicId($appointment_id); - /** @var $appointment Appointment */ - - if($appointment == null) { - throw new Exception("Pas d'identifiant valable"); - } - - /* Edit appointment object */ - $appointment->setEmailsRecipient(implode(", ", $appointment->getEmailsRecipient())); - $appointment->setDateDate($appointment->getDateDate()->format("m-d-Y")); - $appointment->setDateTime($appointment->getDateTime()->format("H:i")); - - $form = $this->createForm(AppointmentEditType::class, $appointment); - $form->handleRequest($request); - - if ($form->isSubmitted() && $form->isValid() && $form["checkPassword"]->getData() == $appointment->getPrivateId()) { - $appointment = $form->getData(); - $appointment->setSentReminder(false); - $appointment->setPublicId(uniqid()); - - $appointment->setDateDate(new \DateTime($form["dateDate"]->getData())); - $appointment->setDateTime(new \DateTime($form["dateTime"]->getData())); - - // generate email field - $appointment->setEmailsRecipient(explode(',', $form["emailsRecipient"]->getData())); - $appointment->setEmailsNumber(count(explode(',', $form["emailsRecipient"]->getData()))+1); - - // generate meeting date field - $appointmentDate = new \DateTime($form["dateDate"]->getData()." ".$form["dateTime"]->getData()); - $appointment->setDate($appointmentDate); - - // generate date reminder field - $appointmentDateToSub = new \DateTime($form["dateDate"]->getData()." ".$form["dateTime"]->getData()); - $appointmentReminder = date_sub($appointmentDateToSub, date_interval_create_from_date_string($form["reminderCount"]->getData().' seconds')); - $appointment->setNextReminder(new \DateTime(date_format($appointmentReminder, 'Y-m-d H:s:i'))); - - $entityManager = $this->getDoctrine()->getManager(); - $entityManager->persist($appointment); - $entityManager->flush(); - - return $this->redirectToRoute('appointment_planned', array('appointment_id' => $appointment->getPublicId())); - } - - return $this->render('edit/index.html.twig', [ - 'form' => $form->createView(), - 'appointment' => $appointment - ]); - } - - /** - * @Route("/remove/{appointment_id}", name="appointment_remove") - */ - public function removeAction($appointment_id, Request $request) - { - $entityManager = $this->getDoctrine()->getManager(); - $appointmentRepo = $entityManager->getRepository('AppBundle:Appointment'); - $appointment = $appointmentRepo->findOneByPublicId($appointment_id); - /** @var $appointment Appointment */ - - if($appointment != null) { - $entityManager->remove($appointment); - $entityManager->flush(); - } - - return $this->render('remove/index.html.twig'); - } - - /** - * @Route("/mentions-legales", name="legal_mentions") - */ - public function legalMentionsAction() - { - return $this->render('legal/index.html.twig'); - } -} diff --git a/src/AppBundle/Entity/Appointment.php b/src/AppBundle/Entity/Appointment.php deleted file mode 100644 index 8f8e968..0000000 --- a/src/AppBundle/Entity/Appointment.php +++ /dev/null @@ -1,505 +0,0 @@ -id; - } - - /** - * Set publicId - * - * @param string $publicId - * - * @return Appointment - */ - public function setPublicId($publicId) - { - $this->publicId = $publicId; - - return $this; - } - - /** - * Get publicId - * - * @return string - */ - public function getPublicId() - { - return $this->publicId; - } - - /** - * Set emailsNumber - * - * @param integer $emailsNumber - * - * @return Appointment - */ - public function setEmailsNumber($emailsNumber) - { - $this->emailsNumber = $emailsNumber; - - return $this; - } - - /** - * Get emailsNumber - * - * @return integer - */ - public function getEmailsNumber() - { - return $this->emailsNumber; - } - - /** - * Set dateDate - * - * @param \DateTime $dateDate - * - * @return Appointment - */ - public function setDateDate($dateDate) - { - $this->dateDate = $dateDate; - - return $this; - } - - /** - * Get dateDate - * - * @return \DateTime - */ - public function getDateDate() - { - return $this->dateDate; - } - - /** - * Set dateTime - * - * @param \DateTime $dateTime - * - * @return Appointment - */ - public function setDateTime($dateTime) - { - $this->dateTime = $dateTime; - - return $this; - } - - /** - * Get dateTime - * - * @return \DateTime - */ - public function getDateTime() - { - return $this->dateTime; - } - - /** - * Set date - * - * @param \DateTime $date - * - * @return Appointment - */ - public function setDate($date) - { - $this->date = $date; - - return $this; - } - - /** - * Get date - * - * @return \DateTime - */ - public function getDate() - { - return $this->date; - } - - /** - * Set nextReminder - * - * @param \DateTime $nextReminder - * - * @return Appointment - */ - public function setNextReminder($nextReminder) - { - $this->nextReminder = $nextReminder; - - return $this; - } - - /** - * Get nextReminder - * - * @return \DateTime - */ - public function getNextReminder() - { - return $this->nextReminder; - } - - /** - * Set reminders - * - * @param array $reminders - * - * @return Appointment - */ - public function setReminders($reminders) - { - $this->reminders = $reminders; - - return $this; - } - - /** - * Get reminders - * - * @return array - */ - public function getReminders() - { - return $this->reminders; - } - - /** - * Set note - * - * @param string $note - * - * @return Appointment - */ - public function setNote($note) - { - $this->note = $note; - - return $this; - } - - /** - * Get note - * - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Set sentReminder - * - * @param boolean $sentReminder - * - * @return Appointment - */ - public function setSentReminder($sentReminder) - { - $this->sentReminder = $sentReminder; - - return $this; - } - - /** - * Get sentReminder - * - * @return boolean - */ - public function getSentReminder() - { - return $this->sentReminder; - } - - /** - * Set reminderStyle - * - * @param string $reminderStyle - * - * @return Appointment - */ - public function setReminderStyle($reminderStyle) - { - $this->reminderStyle = $reminderStyle; - - return $this; - } - - /** - * Get reminderStyle - * - * @return string - */ - public function getReminderStyle() - { - return $this->reminderStyle; - } - - /** - * Set createDate - * - * @param \DateTime $createDate - * - * @return Appointment - */ - public function setCreateDate($createDate) - { - $this->createDate = $createDate; - - return $this; - } - - /** - * Get createDate - * - * @return \DateTime - */ - public function getCreateDate() - { - return $this->createDate; - } - - /** - * Set emailPlanner - * - * @param string $emailPlanner - * - * @return Appointment - */ - public function setEmailPlanner($emailPlanner) - { - $this->emailPlanner = $emailPlanner; - - return $this; - } - - /** - * Get emailPlanner - * - * @return string - */ - public function getEmailPlanner() - { - return $this->emailPlanner; - } - - /** - * Set emailsRecipient - * - * @param array $emailsRecipient - * - * @return Appointment - */ - public function setEmailsRecipient($emailsRecipient) - { - $this->emailsRecipient = $emailsRecipient; - - return $this; - } - - /** - * Get emailsRecipient - * - * @return array - */ - public function getEmailsRecipient() - { - return $this->emailsRecipient; - } - - /** - * Set privateId - * - * @param string $privateId - * - * @return Appointment - */ - public function setPrivateId($privateId) - { - $this->privateId = $privateId; - - return $this; - } - - /** - * Get privateId - * - * @return string - */ - public function getPrivateId() - { - return $this->privateId; - } - - /** - * Set subject - * - * @param string $subject - * - * @return Appointment - */ - public function setSubject($subject) - { - $this->subject = $subject; - - return $this; - } - - /** - * Get subject - * - * @return string - */ - public function getSubject() - { - return $this->subject; - } -} diff --git a/src/AppBundle/Form/AppointmentEditType.php b/src/AppBundle/Form/AppointmentEditType.php deleted file mode 100644 index 3c80d1b..0000000 --- a/src/AppBundle/Form/AppointmentEditType.php +++ /dev/null @@ -1,67 +0,0 @@ -add('subject', TextType::class, array('required' => false)) - ->add('emailPlanner', TextType::class) - ->add('checkPassword', TextType::class, array('mapped' => false)) - ->add('emailsRecipient', TextType::class) - ->add('dateDate', TextType::class) - ->add('dateTime', TextType::class) - ->add('reminderCount', ChoiceType::class, array( - 'mapped' => false, - 'placeholder' => 'Mon rappel doit être envoyé...', - 'choices' => [ - "Une semaine avant" => '432000', - "72 heures avant" => '259200', - "48 heures avant" => '172800', - "24 heures avant" => '88400', - "1 heure avant" => '3600' - ])) - ->add('note', TextareaType::class,array('required' => false)) - /*->add('reminderStyle', ChoiceType::class, array( - 'expanded' => true, - 'multiple' => false, - 'preferred_choices' => ['friend'], - 'choices' => [ - "Entre ami·es" => 'friend', - "Professionnel" => 'professional' - ]))*/ - ; - }/** - * {@inheritdoc} - */ - public function configureOptions(OptionsResolver $resolver) - { - $resolver->setDefaults(array( - 'data_class' => 'AppBundle\Entity\Appointment' - )); - } - - /** - * {@inheritdoc} - */ - public function getBlockPrefix() - { - return 'appbundle_appointment'; - } - - -} diff --git a/src/AppBundle/Form/AppointmentType.php b/src/AppBundle/Form/AppointmentType.php deleted file mode 100644 index c1c13ab..0000000 --- a/src/AppBundle/Form/AppointmentType.php +++ /dev/null @@ -1,66 +0,0 @@ -add('subject', TextType::class, array('required' => false)) - ->add('emailPlanner', TextType::class) - ->add('emailsRecipient', TextType::class) - ->add('dateDate', TextType::class) - ->add('dateTime', TextType::class) - ->add('reminderCount', ChoiceType::class, array( - 'mapped' => false, - 'placeholder' => 'Mon rappel doit être envoyé...', - 'choices' => [ - "Une semaine avant" => '432000', - "72 heures avant" => '259200', - "48 heures avant" => '172800', - "24 heures avant" => '88400', - "1 heure avant" => '3600' - ])) - ->add('note', TextareaType::class,array('required' => false)) - /*->add('reminderStyle', ChoiceType::class, array( - 'expanded' => true, - 'multiple' => false, - 'preferred_choices' => ['friend'], - 'choices' => [ - "Entre ami·es" => 'friend', - "Professionnel" => 'professional' - ]))*/ - ; - }/** - * {@inheritdoc} - */ - public function configureOptions(OptionsResolver $resolver) - { - $resolver->setDefaults(array( - 'data_class' => 'AppBundle\Entity\Appointment' - )); - } - - /** - * {@inheritdoc} - */ - public function getBlockPrefix() - { - return 'appbundle_appointment'; - } - - -} diff --git a/src/AppBundle/Repository/AppointmentRepository.php b/src/AppBundle/Repository/AppointmentRepository.php deleted file mode 100644 index 492f68d..0000000 --- a/src/AppBundle/Repository/AppointmentRepository.php +++ /dev/null @@ -1,13 +0,0 @@ -em = $EntityManager; - $this->twig = $twig; - $this->mailer = $mailer; - } - - /** - * @param $appointment Appointment - * @return bool - */ - public function sendMail($appointment) - { - if($appointment->getSubject() != null) { - $subject = '[Marre des lapins ?] Votre rendez-vous '.$appointment->getSubject().' le '.$appointment->getDate()->format('d-m-Y').' à '. $appointment->getDate()->format('H:i'); - } else { - $subject = '[Marre des lapins ?] Vous avez rendez-vous le '.$appointment->getDate()->format('d-m-Y').' à '. $appointment->getDate()->format('H:i'); - } - - $mailer = $this->getContainer()->get('mailer'); - $message = (new \Swift_Message($subject)) - ->setFrom('contact@karl-pineau.fr') - ->setTo($appointment->getEmails()) - ->setReplyTo($appointment->getEmails()) - ->setCharset('utf-8') - ->setContentType('text/html') - ->setBody($this->renderTemplate($appointment), 'text/html'); - $mailer->send($message); - - return true; - } - - public function renderTemplate($appointment) - { - return $this->twig->render( - 'default/mail.html.twig', - array( - 'appointment' => $appointment - ) - ); - } -} diff --git a/src/AppBundle/Service/PasswordService.php b/src/AppBundle/Service/PasswordService.php deleted file mode 100644 index f9afbcd..0000000 --- a/src/AppBundle/Service/PasswordService.php +++ /dev/null @@ -1,21 +0,0 @@ -getDoctrine()->getManager(); @@ -135,6 +144,11 @@ class ProposalChoiceController extends Controller )); } + /** + * @param $playerProposal + * @param $form + * @return Response + */ public function reloadPlayerProposalChoice($playerProposal, $form) { $em = $this->getDoctrine()->getManager(); @@ -150,6 +164,11 @@ class ProposalChoiceController extends Controller )); } + /** + * @param $playerProposal + * @param $form + * @return \Symfony\Component\HttpFoundation\RedirectResponse + */ public function validationResults($playerProposal, $form) { $em = $this->getDoctrine()->getManager(); @@ -172,6 +191,8 @@ class ProposalChoiceController extends Controller * "expose"=true * } * ) + * @param $field + * @return Response */ public function getFieldsAjaxAction($field) { diff --git a/src/CLICHES/PlayerBundle/Controller/ProposalController.php b/src/CLICHES/PlayerBundle/Controller/ProposalController.php index b65d06c..719595c 100644 --- a/src/CLICHES/PlayerBundle/Controller/ProposalController.php +++ b/src/CLICHES/PlayerBundle/Controller/ProposalController.php @@ -3,6 +3,7 @@ namespace CLICHES\PlayerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ProposalController extends Controller { @@ -14,6 +15,8 @@ class ProposalController extends Controller * "playerOeuvre_id"="\d+" * } * ) + * @param $playerOeuvre_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function proposalAction($playerOeuvre_id) { diff --git a/src/CLICHES/PlayerBundle/Controller/ProposalFieldController.php b/src/CLICHES/PlayerBundle/Controller/ProposalFieldController.php index 95cd001..8048953 100644 --- a/src/CLICHES/PlayerBundle/Controller/ProposalFieldController.php +++ b/src/CLICHES/PlayerBundle/Controller/ProposalFieldController.php @@ -7,6 +7,7 @@ use CLICHES\PlayerBundle\Form\PlayerProposalLoadFieldType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ProposalFieldController extends Controller { @@ -18,6 +19,9 @@ class ProposalFieldController extends Controller * "playerOeuvre_id"="\d+" * } * ) + * @param $playerOeuvre_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response */ public function proposalFieldAction($playerOeuvre_id, Request $request) { @@ -79,6 +83,8 @@ class ProposalFieldController extends Controller * "expose"=true * } * ) + * @param $idImg + * @return Response */ public function getFieldsAjaxAction($idImg) { diff --git a/src/CLICHES/PlayerBundle/Controller/ProposalTestController.php b/src/CLICHES/PlayerBundle/Controller/ProposalTestController.php index c8ffae1..732b4e4 100644 --- a/src/CLICHES/PlayerBundle/Controller/ProposalTestController.php +++ b/src/CLICHES/PlayerBundle/Controller/ProposalTestController.php @@ -4,6 +4,7 @@ namespace CLICHES\PlayerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ProposalTestController extends Controller { @@ -15,6 +16,8 @@ class ProposalTestController extends Controller * "playerOeuvre_id"="\d+" * } * ) + * @param $playerOeuvre_id + * @return \Symfony\Component\HttpFoundation\Response */ public function proposalTestAction($playerOeuvre_id) { diff --git a/src/CLICHES/PlayerBundle/Controller/ResultChoiceController.php b/src/CLICHES/PlayerBundle/Controller/ResultChoiceController.php index 763680a..1ad3a28 100644 --- a/src/CLICHES/PlayerBundle/Controller/ResultChoiceController.php +++ b/src/CLICHES/PlayerBundle/Controller/ResultChoiceController.php @@ -3,6 +3,7 @@ namespace CLICHES\PlayerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ResultChoiceController extends Controller { @@ -14,6 +15,8 @@ class ResultChoiceController extends Controller * "playerProposal_id"="\d+" * } * ) + * @param $playerProposal_id + * @return \Symfony\Component\HttpFoundation\Response */ public function resultAction($playerProposal_id) { diff --git a/src/CLICHES/PlayerBundle/Controller/ResultController.php b/src/CLICHES/PlayerBundle/Controller/ResultController.php index e1b4331..5bd56ba 100644 --- a/src/CLICHES/PlayerBundle/Controller/ResultController.php +++ b/src/CLICHES/PlayerBundle/Controller/ResultController.php @@ -10,6 +10,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use CLICHES\PlayerBundle\Entity\PlayerSuggest; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ResultController extends Controller { @@ -22,6 +23,8 @@ class ResultController extends Controller * "playerProposal_id"="\d+" * } * ) + * @param $playerProposal_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function resultAction($playerProposal_id) { diff --git a/src/CLICHES/PlayerBundle/Controller/ResultFieldController.php b/src/CLICHES/PlayerBundle/Controller/ResultFieldController.php index ed85ef0..17ac9c9 100644 --- a/src/CLICHES/PlayerBundle/Controller/ResultFieldController.php +++ b/src/CLICHES/PlayerBundle/Controller/ResultFieldController.php @@ -10,6 +10,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use CLICHES\PlayerBundle\Entity\PlayerSuggest; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ResultFieldController extends Controller { @@ -23,6 +24,10 @@ class ResultFieldController extends Controller * "validation"="\S{0,255}" * } * ) + * @param $playerProposal_id + * @param Request $request + * @param null $validation + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response */ public function resultAction($playerProposal_id, Request $request, $validation=null) { @@ -87,6 +92,13 @@ class ResultFieldController extends Controller } } + /** + * @param $fieldSuggest + * @param $playerProposal + * @param null $sources + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response + */ public function resultWithSuggest($fieldSuggest, $playerProposal, $sources=null, Request $request) { $em = $this->getDoctrine()->getManager(); @@ -135,6 +147,12 @@ class ResultFieldController extends Controller )); } + /** + * @param $playerProposal + * @param null $sources + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response + */ public function resultTeachingTestVote($playerProposal, $sources=null, Request $request) { //Définition des variables : @@ -189,6 +207,8 @@ class ResultFieldController extends Controller * "expose"=true * } * ) + * @param $playerProposal_id + * @return Response */ public function resultsAction($playerProposal_id) { diff --git a/src/CLICHES/PlayerBundle/Controller/SelectionController.php b/src/CLICHES/PlayerBundle/Controller/SelectionController.php index 7d7ccb2..df648e5 100644 --- a/src/CLICHES/PlayerBundle/Controller/SelectionController.php +++ b/src/CLICHES/PlayerBundle/Controller/SelectionController.php @@ -4,6 +4,7 @@ namespace CLICHES\PlayerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use CLICHES\PlayerBundle\Entity\PlayerOeuvre; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SelectionController extends Controller { @@ -19,6 +20,8 @@ class SelectionController extends Controller * "expose"=true * } * ) + * @param $playerSession_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function selectionAction($playerSession_id) { diff --git a/src/CLICHES/PlayerBundle/Controller/SessionController.php b/src/CLICHES/PlayerBundle/Controller/SessionController.php index 700d650..d1e82ca 100644 --- a/src/CLICHES/PlayerBundle/Controller/SessionController.php +++ b/src/CLICHES/PlayerBundle/Controller/SessionController.php @@ -5,6 +5,7 @@ namespace CLICHES\PlayerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use CLICHES\PlayerBundle\Entity\PlayerSession; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SessionController extends Controller { @@ -17,6 +18,9 @@ class SessionController extends Controller * "mode"="\S{0,255}" * } * ) + * @param $teaching_id + * @param $mode + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function loadAction($teaching_id, $mode) { @@ -51,6 +55,8 @@ class SessionController extends Controller * "expose"=true * } * ) + * @param $session_id + * @return Response */ public function forcedEndAction($session_id) { diff --git a/src/DATA/AdministrationBundle/Controller/EntityController.php b/src/DATA/AdministrationBundle/Controller/EntityController.php index 8646307..77267dd 100644 --- a/src/DATA/AdministrationBundle/Controller/EntityController.php +++ b/src/DATA/AdministrationBundle/Controller/EntityController.php @@ -4,6 +4,7 @@ namespace DATA\AdministrationBundle\Controller; use DATA\DataBundle\Entity\Entity; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityController extends Controller { diff --git a/src/DATA/AdministrationBundle/Controller/HomeController.php b/src/DATA/AdministrationBundle/Controller/HomeController.php index f7ac4ef..928851e 100644 --- a/src/DATA/AdministrationBundle/Controller/HomeController.php +++ b/src/DATA/AdministrationBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace DATA\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -11,6 +12,7 @@ class HomeController extends Controller * "/", * name="data_administration_home_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/DATA/AdministrationBundle/Controller/PublicController.php b/src/DATA/AdministrationBundle/Controller/PublicController.php index 3a18833..b04524b 100644 --- a/src/DATA/AdministrationBundle/Controller/PublicController.php +++ b/src/DATA/AdministrationBundle/Controller/PublicController.php @@ -4,6 +4,7 @@ namespace DATA\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class PublicController extends Controller { @@ -12,6 +13,8 @@ class PublicController extends Controller * "/visites", * name="data_administration_public_visit" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function visitAction(Request $request) { diff --git a/src/DATA/AdministrationBundle/Controller/ReportingController.php b/src/DATA/AdministrationBundle/Controller/ReportingController.php index aaa81f9..d740252 100644 --- a/src/DATA/AdministrationBundle/Controller/ReportingController.php +++ b/src/DATA/AdministrationBundle/Controller/ReportingController.php @@ -3,6 +3,7 @@ namespace DATA\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ReportingController extends Controller { @@ -11,6 +12,7 @@ class ReportingController extends Controller * "/signalements", * name="data_administration_reporting_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -32,6 +34,8 @@ class ReportingController extends Controller * "reporting_id"="\d+" * } * ) + * @param $reporting_id + * @return \Symfony\Component\HttpFoundation\Response */ public function validateAction($reporting_id) { @@ -73,6 +77,8 @@ class ReportingController extends Controller * "reporting_id"="\d+" * } * ) + * @param $reporting_id + * @return \Symfony\Component\HttpFoundation\Response */ public function refuseAction($reporting_id) { diff --git a/src/DATA/AdministrationBundle/Controller/SearchController.php b/src/DATA/AdministrationBundle/Controller/SearchController.php index 37e2e43..1ac3f8d 100644 --- a/src/DATA/AdministrationBundle/Controller/SearchController.php +++ b/src/DATA/AdministrationBundle/Controller/SearchController.php @@ -4,6 +4,7 @@ namespace DATA\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SearchController extends Controller { @@ -12,6 +13,8 @@ class SearchController extends Controller * "/recherches/statistiques", * name="data_administration_search_statistics" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function statisticsAction(Request $request) { diff --git a/src/DATA/AdministrationBundle/Controller/TeachingTestController.php b/src/DATA/AdministrationBundle/Controller/TeachingTestController.php index c72593a..3b9d1cf 100644 --- a/src/DATA/AdministrationBundle/Controller/TeachingTestController.php +++ b/src/DATA/AdministrationBundle/Controller/TeachingTestController.php @@ -4,6 +4,7 @@ namespace DATA\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TeachingTestController extends Controller { @@ -12,6 +13,7 @@ class TeachingTestController extends Controller * "/teaching-test", * name="data_administration_teachingtest_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -41,6 +43,8 @@ class TeachingTestController extends Controller * "/teaching-test/derniers-votes", * name="data_administration_teachingtest_lastvotes" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function lastVotesAction(Request $request) { diff --git a/src/DATA/AdministrationBundle/Controller/VisualizationController.php b/src/DATA/AdministrationBundle/Controller/VisualizationController.php index 63c3a8b..a73f6b5 100644 --- a/src/DATA/AdministrationBundle/Controller/VisualizationController.php +++ b/src/DATA/AdministrationBundle/Controller/VisualizationController.php @@ -4,6 +4,7 @@ namespace DATA\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class VisualizationController extends Controller { @@ -12,6 +13,7 @@ class VisualizationController extends Controller * "/visualisation", * name="data_administration_visualization_index" * ) + * @return Response */ public function indexAction() { @@ -23,6 +25,7 @@ class VisualizationController extends Controller * "/visualisation/get", * name="data_administration_visualization_get" * ) + * @return Response */ public function getAction() { diff --git a/src/DATA/DataBundle/Command/AlignmentCommand.php b/src/DATA/DataBundle/Command/AlignmentCommand.php index d27e1b6..fdcaca8 100644 --- a/src/DATA/DataBundle/Command/AlignmentCommand.php +++ b/src/DATA/DataBundle/Command/AlignmentCommand.php @@ -10,6 +10,7 @@ use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class AlignmentCommand extends ContainerAwareCommand { diff --git a/src/DATA/DataBundle/Command/GetSameAsCommand.php b/src/DATA/DataBundle/Command/GetSameAsCommand.php index 7de96c9..e53f484 100644 --- a/src/DATA/DataBundle/Command/GetSameAsCommand.php +++ b/src/DATA/DataBundle/Command/GetSameAsCommand.php @@ -9,6 +9,7 @@ use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class GetSameAsCommand extends ContainerAwareCommand { diff --git a/src/DATA/DataBundle/Controller/ArtworkController.php b/src/DATA/DataBundle/Controller/ArtworkController.php index e5efcc7..2609a87 100644 --- a/src/DATA/DataBundle/Controller/ArtworkController.php +++ b/src/DATA/DataBundle/Controller/ArtworkController.php @@ -5,6 +5,7 @@ namespace DATA\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use DATA\DataBundle\Form\ArtworkEditType; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ArtworkController extends Controller { @@ -16,6 +17,9 @@ class ArtworkController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($slug, Request $request) { diff --git a/src/DATA/DataBundle/Controller/BuildingController.php b/src/DATA/DataBundle/Controller/BuildingController.php index 603c470..8220194 100644 --- a/src/DATA/DataBundle/Controller/BuildingController.php +++ b/src/DATA/DataBundle/Controller/BuildingController.php @@ -5,6 +5,7 @@ namespace DATA\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use DATA\DataBundle\Form\BuildingEditType; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class BuildingController extends Controller { @@ -16,6 +17,9 @@ class BuildingController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($slug, Request $request) { diff --git a/src/DATA/DataBundle/Controller/EntityController.php b/src/DATA/DataBundle/Controller/EntityController.php index d621cc2..2a392a3 100644 --- a/src/DATA/DataBundle/Controller/EntityController.php +++ b/src/DATA/DataBundle/Controller/EntityController.php @@ -6,6 +6,7 @@ use DATA\DataBundle\Entity\SujetAsIconography; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityController extends Controller { @@ -14,6 +15,8 @@ class EntityController extends Controller * "/oeuvres", * name="data_data_entity_index" * ) + * @param Request $request + * @return Response */ public function indexAction(Request $request) { @@ -47,6 +50,8 @@ class EntityController extends Controller * "/no-same-as", * name="data_data_entity_getNoSameAs" * ) + * @param Request $request + * @return Response */ public function getNoSameAsAction(Request $request) { @@ -76,6 +81,8 @@ class EntityController extends Controller * "/with-same-as", * name="data_data_entity_getWithSameAs" * ) + * @param Request $request + * @return Response */ public function getWithSameAsAction(Request $request) { @@ -108,6 +115,8 @@ class EntityController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return Response */ public function viewAction($id) { @@ -144,6 +153,8 @@ class EntityController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function switchAction($id) { @@ -166,6 +177,8 @@ class EntityController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function deleteAction($id) { @@ -187,6 +200,8 @@ class EntityController extends Controller * "expose"=true * } * ) + * @param $entity_id + * @return Response */ public function setSujetAsIconographyAction($entity_id) { diff --git a/src/DATA/DataBundle/Controller/EntityPropertiesAlignmentController.php b/src/DATA/DataBundle/Controller/EntityPropertiesAlignmentController.php index 33ca35f..9b8e1df 100644 --- a/src/DATA/DataBundle/Controller/EntityPropertiesAlignmentController.php +++ b/src/DATA/DataBundle/Controller/EntityPropertiesAlignmentController.php @@ -7,6 +7,7 @@ use DATA\DataBundle\Entity\SujetAsIconography; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityPropertiesAlignmentController extends Controller { @@ -18,6 +19,8 @@ class EntityPropertiesAlignmentController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function setWikidataPropertiesToHDAPropertiesAction($id) { diff --git a/src/DATA/DataBundle/Controller/EntitySameAsController.php b/src/DATA/DataBundle/Controller/EntitySameAsController.php index 2c55897..4ecbcb2 100644 --- a/src/DATA/DataBundle/Controller/EntitySameAsController.php +++ b/src/DATA/DataBundle/Controller/EntitySameAsController.php @@ -6,6 +6,7 @@ use DATA\DataBundle\Entity\EntitySameAs; use DATA\DataBundle\Form\EntitySameAsType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntitySameAsController extends Controller { @@ -17,6 +18,9 @@ class EntitySameAsController extends Controller * "id"="\d+" * } * ) + * @param $id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function getAllSameAsForEntityAction($id, Request $request) { @@ -59,6 +63,8 @@ class EntitySameAsController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function removeSameAsAction($id) { diff --git a/src/DATA/DataBundle/Controller/EntitySourcesController.php b/src/DATA/DataBundle/Controller/EntitySourcesController.php index 946f9f3..ffa28a3 100644 --- a/src/DATA/DataBundle/Controller/EntitySourcesController.php +++ b/src/DATA/DataBundle/Controller/EntitySourcesController.php @@ -6,6 +6,7 @@ use DATA\DataBundle\Entity\EntitySources; use DATA\DataBundle\Form\EntitySourcesType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntitySourcesController extends Controller { @@ -17,6 +18,9 @@ class EntitySourcesController extends Controller * "id"="\d+" * } * ) + * @param $id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function sourcesForEntityAction($id, Request $request) { diff --git a/src/DATA/DataBundle/Controller/EntityTeachingController.php b/src/DATA/DataBundle/Controller/EntityTeachingController.php index b2e06f3..b90ad1a 100644 --- a/src/DATA/DataBundle/Controller/EntityTeachingController.php +++ b/src/DATA/DataBundle/Controller/EntityTeachingController.php @@ -5,6 +5,7 @@ namespace DATA\DataBundle\Controller; use DATA\DataBundle\Form\EntityTeachingType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityTeachingController extends Controller { @@ -16,6 +17,9 @@ class EntityTeachingController extends Controller * "id"="\d+" * } * ) + * @param $id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($id, Request $request) { @@ -53,6 +57,9 @@ class EntityTeachingController extends Controller * "slug_teaching"="\S{0,255}" * } * ) + * @param $id + * @param $slug_teaching + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function deleteAction($id, $slug_teaching) { diff --git a/src/DATA/DataBundle/Controller/EntityViewsController.php b/src/DATA/DataBundle/Controller/EntityViewsController.php index b173d1b..e6513b5 100644 --- a/src/DATA/DataBundle/Controller/EntityViewsController.php +++ b/src/DATA/DataBundle/Controller/EntityViewsController.php @@ -11,6 +11,7 @@ use DATA\ImageBundle\Entity\View; use DATA\ImageBundle\Form\ImageRegisterType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityViewsController extends Controller @@ -23,6 +24,9 @@ class EntityViewsController extends Controller * "id"="\d+" * } * ) + * @param $id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function addViewAction($id, Request $request) { @@ -70,6 +74,8 @@ class EntityViewsController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function unrelatedViewAction($id) { @@ -102,6 +108,8 @@ class EntityViewsController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function exclusionFromClichesAction($view_id) { @@ -134,6 +142,10 @@ class EntityViewsController extends Controller * "slug"="up|down" * } * ) + * @param $view_id + * @param $currentOrder + * @param $way + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function orderViewAction($view_id, $currentOrder, $way) { @@ -163,6 +175,7 @@ class EntityViewsController extends Controller * "/view/sort-all", * name="data_data_entity_view_initialOrderViews" * ) + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function initialOrderViewsAction() { @@ -193,6 +206,9 @@ class EntityViewsController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function mergeViewsAction($view_id, Request $request) { diff --git a/src/DATA/DataBundle/Controller/EntityWikidataController.php b/src/DATA/DataBundle/Controller/EntityWikidataController.php index 2fd25be..63fa538 100644 --- a/src/DATA/DataBundle/Controller/EntityWikidataController.php +++ b/src/DATA/DataBundle/Controller/EntityWikidataController.php @@ -7,6 +7,7 @@ use DATA\DataBundle\Entity\SujetAsIconography; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityWikidataController extends Controller { @@ -18,6 +19,8 @@ class EntityWikidataController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return Response */ public function indexAction($id) { @@ -52,6 +55,9 @@ class EntityWikidataController extends Controller * "id_property"="\d+" * } * ) + * @param $id + * @param $id_property + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function removeWikidataPropertyAction($id, $id_property) { @@ -78,6 +84,9 @@ class EntityWikidataController extends Controller * "qwd"="\S{0,255}" * } * ) + * @param $id + * @param $qwd + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function acceptWikidataAlignementAction($id, $qwd) { @@ -106,6 +115,8 @@ class EntityWikidataController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function refuseWikidataAlignementAction($id) { @@ -126,6 +137,8 @@ class EntityWikidataController extends Controller * "/wikidata/alignments", * name="data_data_entity_wikidata_alignements" * ) + * @param Request $request + * @return Response */ public function getListAlignmentsAction(Request $request) { diff --git a/src/DATA/DataBundle/Controller/PadController.php b/src/DATA/DataBundle/Controller/PadController.php index 459faf5..e367840 100644 --- a/src/DATA/DataBundle/Controller/PadController.php +++ b/src/DATA/DataBundle/Controller/PadController.php @@ -6,6 +6,7 @@ use DATA\DataBundle\Entity\Pad; use DATA\DataBundle\Form\PadType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class PadController extends Controller @@ -18,6 +19,9 @@ class PadController extends Controller * "id"="\d+" * } * ) + * @param $id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editPadAction($id, Request $request) { diff --git a/src/DATA/DataBundle/Controller/SourceController.php b/src/DATA/DataBundle/Controller/SourceController.php index 78b543d..e2d4430 100644 --- a/src/DATA/DataBundle/Controller/SourceController.php +++ b/src/DATA/DataBundle/Controller/SourceController.php @@ -5,6 +5,7 @@ namespace DATA\DataBundle\Controller; use DATA\DataBundle\Entity\SourceClick; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SourceController extends Controller { @@ -13,13 +14,16 @@ class SourceController extends Controller * "/source/click/{source_id}/{context}", * name="data_data_source_addClick", * requirements={ - * "source_id"="\d+" + * "source_id"="\d+", * "context"="\S{0,255}" * }, * options={ * "expose"=true * } * ) + * @param $source_id + * @param $context + * @return Response */ public function addClickAction($source_id, $context) { diff --git a/src/DATA/DataBundle/Controller/UnrelevantController.php b/src/DATA/DataBundle/Controller/UnrelevantController.php index 224a15b..324fe88 100644 --- a/src/DATA/DataBundle/Controller/UnrelevantController.php +++ b/src/DATA/DataBundle/Controller/UnrelevantController.php @@ -3,6 +3,7 @@ namespace DATA\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class UnrelevantController extends Controller { @@ -15,6 +16,9 @@ class UnrelevantController extends Controller * "field"="\S{0,255}" * } * ) + * @param $field + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function setUnrelevantAction($field, $id) { @@ -39,6 +43,9 @@ class UnrelevantController extends Controller * "unrelevantField_id"="\d+" * } * ) + * @param $unrelevantField_id + * @param $id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function setRelevantAction($unrelevantField_id, $id) { diff --git a/src/DATA/DuplicateBundle/Controller/DuplicateController.php b/src/DATA/DuplicateBundle/Controller/DuplicateController.php index 8056786..5c722b0 100644 --- a/src/DATA/DuplicateBundle/Controller/DuplicateController.php +++ b/src/DATA/DuplicateBundle/Controller/DuplicateController.php @@ -7,6 +7,7 @@ use DATA\DuplicateBundle\Entity\Unmatch; use DATA\DuplicateBundle\Form\SpecificMergeType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class DuplicateController extends Controller { @@ -15,6 +16,7 @@ class DuplicateController extends Controller * "/review", * name="data_duplicate_duplicate_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -60,6 +62,9 @@ class DuplicateController extends Controller * "entityRight_id"="\d+" * } * ) + * @param $entityLeft_id + * @param $entityRight_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function unmatchAction($entityLeft_id, $entityRight_id) { @@ -92,6 +97,9 @@ class DuplicateController extends Controller * "entityRight_slug"="\d+" * } * ) + * @param $entityLeft_id + * @param $entityRight_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function mergeDuplicatesAction($entityLeft_id, $entityRight_id) { @@ -108,6 +116,8 @@ class DuplicateController extends Controller * "/specific", * name="data_duplicate_duplicate_specific" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function specificMergeAction(Request $request) { diff --git a/src/DATA/DuplicateBundle/Controller/TypeController.php b/src/DATA/DuplicateBundle/Controller/TypeController.php index 9c98841..683fd25 100644 --- a/src/DATA/DuplicateBundle/Controller/TypeController.php +++ b/src/DATA/DuplicateBundle/Controller/TypeController.php @@ -5,6 +5,7 @@ namespace DATA\DuplicateBundle\Controller; use DATA\DuplicateBundle\Entity\Type; use DATA\DuplicateBundle\Form\TypeType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TypeController extends Controller { @@ -13,6 +14,7 @@ class TypeController extends Controller * "/type-mot", * name="data_duplicate_type_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -27,6 +29,7 @@ class TypeController extends Controller * "/type-mot/ajouter", * name="data_duplicate_type_register" * ) + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function registerAction() { @@ -60,6 +63,8 @@ class TypeController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($slug) { @@ -83,6 +88,8 @@ class TypeController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($slug) { @@ -123,6 +130,8 @@ class TypeController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\Response */ public function deleteAction($slug) { diff --git a/src/DATA/DuplicateBundle/Controller/WordTypeController.php b/src/DATA/DuplicateBundle/Controller/WordTypeController.php index 089b117..849603e 100644 --- a/src/DATA/DuplicateBundle/Controller/WordTypeController.php +++ b/src/DATA/DuplicateBundle/Controller/WordTypeController.php @@ -5,6 +5,7 @@ namespace DATA\DuplicateBundle\Controller; use DATA\DuplicateBundle\Entity\GlobalWordType; use DATA\DuplicateBundle\Form\GlobalWordTypeType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class WordTypeController extends Controller { @@ -13,6 +14,7 @@ class WordTypeController extends Controller * "/mot", * name="data_duplicate_wordtype_index" * ) + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -55,6 +57,7 @@ class WordTypeController extends Controller * "/liste-mots", * name="data_duplicate_wordtype_list" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function listAction() { diff --git a/src/DATA/ImageBundle/Controller/FileImageController.php b/src/DATA/ImageBundle/Controller/FileImageController.php index d95ff3b..9d3b2c3 100644 --- a/src/DATA/ImageBundle/Controller/FileImageController.php +++ b/src/DATA/ImageBundle/Controller/FileImageController.php @@ -5,6 +5,7 @@ namespace DATA\ImageBundle\Controller; use DATA\ImageBundle\Entity\FileImage; use DATA\ImageBundle\Form\FileImageType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class FileImageController extends Controller { @@ -13,6 +14,7 @@ class FileImageController extends Controller * "/fichier-image/accueil", * name="data_image_fileimage_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -24,6 +26,7 @@ class FileImageController extends Controller * "/fichier-image/insertion", * name="data_image_fileimage_register" * ) + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function registerAction() { @@ -57,6 +60,8 @@ class FileImageController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($view_id) { diff --git a/src/DATA/ImageBundle/Controller/ImageController.php b/src/DATA/ImageBundle/Controller/ImageController.php index 31516e3..a65bfc8 100644 --- a/src/DATA/ImageBundle/Controller/ImageController.php +++ b/src/DATA/ImageBundle/Controller/ImageController.php @@ -4,6 +4,7 @@ namespace DATA\ImageBundle\Controller; use DATA\ImageBundle\Form\ImageType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ImageController extends Controller { @@ -27,6 +28,13 @@ class ImageController extends Controller * "image_id"=".{0,40}" * } * ) + * @param $view_id + * @param $class + * @param int $id + * @param int $clichesnumber + * @param int $session + * @param int $image_id + * @return \Symfony\Component\HttpFoundation\Response */ public function renderImageAction($view_id, $class, $id=0, $clichesnumber=0, $session=0, $image_id=0) { @@ -84,6 +92,8 @@ class ImageController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($view_id) { diff --git a/src/DATA/ImageBundle/Controller/ViewController.php b/src/DATA/ImageBundle/Controller/ViewController.php index 8c6b8fb..ba359ad 100644 --- a/src/DATA/ImageBundle/Controller/ViewController.php +++ b/src/DATA/ImageBundle/Controller/ViewController.php @@ -4,6 +4,7 @@ namespace DATA\ImageBundle\Controller; use DATA\ImageBundle\Form\ViewType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ViewController extends Controller { @@ -15,6 +16,8 @@ class ViewController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($view_id) { @@ -55,6 +58,8 @@ class ViewController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function deleteAction($view_id) { diff --git a/src/DATA/ImportBundle/Controller/AdministrationImportController.php b/src/DATA/ImportBundle/Controller/AdministrationImportController.php index 0d6049c..d6341a8 100644 --- a/src/DATA/ImportBundle/Controller/AdministrationImportController.php +++ b/src/DATA/ImportBundle/Controller/AdministrationImportController.php @@ -3,6 +3,7 @@ namespace DATA\ImportBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class AdministrationImportController extends Controller { @@ -11,6 +12,7 @@ class AdministrationImportController extends Controller * "/administration/accueil", * name="data_import_administrationimport_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -50,6 +52,9 @@ class AdministrationImportController extends Controller * "bool"="true|false" * } * ) + * @param $id + * @param $bool + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function validationAction($id, $bool) { @@ -104,6 +109,7 @@ class AdministrationImportController extends Controller * "/administration/archives", * name="data_import_administrationimport_archives" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function archivesAction() { diff --git a/src/DATA/ImportBundle/Controller/ImportController.php b/src/DATA/ImportBundle/Controller/ImportController.php index 7af77fd..7e2a505 100644 --- a/src/DATA/ImportBundle/Controller/ImportController.php +++ b/src/DATA/ImportBundle/Controller/ImportController.php @@ -10,6 +10,7 @@ use DATA\ImportBundle\Entity\EntityImportSession; use DATA\ImportBundle\Form\EntityImportType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class ImportController extends Controller { @@ -18,6 +19,7 @@ class ImportController extends Controller * "/accueil", * name="data_import_import_index" * ) + * @return Response */ public function indexAction() { @@ -47,6 +49,9 @@ class ImportController extends Controller * "entity_id"="\d+" * } * ) + * @param $import_session_id + * @param $entity_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response */ public function importAction($import_session_id, $entity_id) { @@ -130,6 +135,8 @@ class ImportController extends Controller * "import_session_id"="\d+" * } * ) + * @param $import_session_id + * @return Response */ public function endAction($import_session_id) { @@ -151,6 +158,8 @@ class ImportController extends Controller * "expose"=true * } * ) + * @param $type + * @return Response */ public function entityFieldAction($type) { diff --git a/src/DATA/ImportBundle/Controller/SpecialImportController.php b/src/DATA/ImportBundle/Controller/SpecialImportController.php index f89bf45..364beaa 100644 --- a/src/DATA/ImportBundle/Controller/SpecialImportController.php +++ b/src/DATA/ImportBundle/Controller/SpecialImportController.php @@ -10,6 +10,7 @@ use DATA\ImageBundle\Entity\View; use DATA\ImportBundle\Form\SpecialImportType; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SpecialImportController extends Controller { @@ -18,6 +19,8 @@ class SpecialImportController extends Controller * "/special/accueil", * name="data_import_specialimport_index" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request) { diff --git a/src/DATA/PersonalPlaceBundle/Controller/FavoriteController.php b/src/DATA/PersonalPlaceBundle/Controller/FavoriteController.php index a90d06a..cce00e9 100644 --- a/src/DATA/PersonalPlaceBundle/Controller/FavoriteController.php +++ b/src/DATA/PersonalPlaceBundle/Controller/FavoriteController.php @@ -4,6 +4,7 @@ namespace DATA\PersonalPlaceBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class FavoriteController extends Controller { @@ -12,6 +13,8 @@ class FavoriteController extends Controller * "/profile/favoris", * name="data_personalplace_favorite_index" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request) { diff --git a/src/DATA/PublicBundle/Controller/EntityController.php b/src/DATA/PublicBundle/Controller/EntityController.php index e56688e..4d7b8fc 100644 --- a/src/DATA/PublicBundle/Controller/EntityController.php +++ b/src/DATA/PublicBundle/Controller/EntityController.php @@ -12,6 +12,7 @@ use CAS\UserBundle\Entity\Favorite; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EntityController extends Controller { @@ -26,6 +27,8 @@ class EntityController extends Controller * } * } * ) + * @param Request $request + * @return Response */ public function indexAction(Request $request) { @@ -62,6 +65,8 @@ class EntityController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return Response */ public function viewJsonAction($id) { $entity = $this->get('data_data.entity')->find('one', array('id' => $id)); @@ -103,6 +108,10 @@ class EntityController extends Controller * "context"="\S{0,255}" * } * ) + * @param $id + * @param $context + * @param Request $request + * @return Response */ public function viewAction($id, $context, Request $request) { @@ -176,6 +185,8 @@ class EntityController extends Controller * "expose"=true * } * ) + * @param $id + * @return Response */ public function favoriteAction($id) { @@ -212,6 +223,9 @@ class EntityController extends Controller * "view_id"="\d+" * } * ) + * @param $view_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response */ public function addViewToPrivateSessionAction($view_id, Request $request) { diff --git a/src/DATA/PublicBundle/Controller/HomeController.php b/src/DATA/PublicBundle/Controller/HomeController.php index d52ca6c..192c029 100644 --- a/src/DATA/PublicBundle/Controller/HomeController.php +++ b/src/DATA/PublicBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace DATA\PublicBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -17,6 +18,7 @@ class HomeController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/DATA/PublicBundle/Controller/TeachingController.php b/src/DATA/PublicBundle/Controller/TeachingController.php index 45a7e92..783fd97 100644 --- a/src/DATA/PublicBundle/Controller/TeachingController.php +++ b/src/DATA/PublicBundle/Controller/TeachingController.php @@ -5,6 +5,7 @@ namespace DATA\PublicBundle\Controller; use DATA\PublicBundle\Entity\Visit; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TeachingController extends Controller { @@ -19,6 +20,7 @@ class TeachingController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -39,6 +41,9 @@ class TeachingController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($slug, Request $request) { diff --git a/src/DATA/PublicBundle/Controller/UniversityController.php b/src/DATA/PublicBundle/Controller/UniversityController.php index c4af10a..e733d17 100644 --- a/src/DATA/PublicBundle/Controller/UniversityController.php +++ b/src/DATA/PublicBundle/Controller/UniversityController.php @@ -4,6 +4,7 @@ namespace DATA\PublicBundle\Controller; use DATA\PublicBundle\Entity\Visit; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class UniversityController extends Controller { @@ -18,6 +19,7 @@ class UniversityController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -38,6 +40,8 @@ class UniversityController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($slug) { diff --git a/src/DATA/SearchBundle/Controller/SearchController.php b/src/DATA/SearchBundle/Controller/SearchController.php index cbec279..2d39ed7 100644 --- a/src/DATA/SearchBundle/Controller/SearchController.php +++ b/src/DATA/SearchBundle/Controller/SearchController.php @@ -7,6 +7,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\Controller; use DATA\SearchBundle\Form\SearchType; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SearchController extends Controller { @@ -15,6 +16,7 @@ class SearchController extends Controller * "/", * name="data_search_search_index" * ) + * @return Response */ public function indexAction() { @@ -25,6 +27,12 @@ class SearchController extends Controller * @Route( * "/requete", * name="data_search_search_search" + * ) + * + * @param null $access + * @param null $teaching + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response */ public function searchAction($access=null, $teaching=null, Request $request) { @@ -92,6 +100,8 @@ class SearchController extends Controller * "/resultats", * name="data_search_search_result" * ) + * @param Request $request + * @return Response */ public function resultAction(Request $request) { @@ -178,6 +188,7 @@ class SearchController extends Controller * "expose"="true" * } * ) + * @return Response */ public function autocompleteAction() { diff --git a/src/DATA/SearchBundle/Controller/SearchIndexController.php b/src/DATA/SearchBundle/Controller/SearchIndexController.php index 9329093..08befbb 100644 --- a/src/DATA/SearchBundle/Controller/SearchIndexController.php +++ b/src/DATA/SearchBundle/Controller/SearchIndexController.php @@ -4,6 +4,7 @@ namespace DATA\SearchBundle\Controller; use DATA\SearchBundle\Entity\SearchIndex; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class SearchIndexController extends Controller { @@ -12,6 +13,7 @@ class SearchIndexController extends Controller * "/super-administration/indexation/construction", * name="data_search_searchindex_buildindex" * ) + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function buildIndexAction() { diff --git a/src/DATA/TeachingBundle/Controller/TeachingController.php b/src/DATA/TeachingBundle/Controller/TeachingController.php index 64a9732..65c7836 100644 --- a/src/DATA/TeachingBundle/Controller/TeachingController.php +++ b/src/DATA/TeachingBundle/Controller/TeachingController.php @@ -7,6 +7,7 @@ use DATA\TeachingBundle\Entity\Teaching; use DATA\TeachingBundle\Form\TeachingEditType; use DATA\TeachingBundle\Form\TeachingRegisterType; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TeachingController extends Controller { @@ -15,6 +16,7 @@ class TeachingController extends Controller * "/enseignement/accueil", * name="data_teaching_teaching_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -30,6 +32,7 @@ class TeachingController extends Controller * "/enseignement/liste", * name="data_teaching_teaching_list" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function listAction() { @@ -53,6 +56,9 @@ class TeachingController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($slug, Request $request) { @@ -78,6 +84,8 @@ class TeachingController extends Controller * "/enseignement/nouveau", * name="data_teaching_teaching_register" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function registerAction(Request $request) { @@ -109,6 +117,9 @@ class TeachingController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($slug, Request $request) { @@ -142,6 +153,8 @@ class TeachingController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\Response */ public function deleteAction($slug) { diff --git a/src/DATA/TeachingBundle/Controller/UniversityController.php b/src/DATA/TeachingBundle/Controller/UniversityController.php index ed1b5b9..ccb385d 100644 --- a/src/DATA/TeachingBundle/Controller/UniversityController.php +++ b/src/DATA/TeachingBundle/Controller/UniversityController.php @@ -7,6 +7,7 @@ use DATA\TeachingBundle\Entity\University; use DATA\TeachingBundle\Form\UniversityEditType; use DATA\TeachingBundle\Form\UniversityRegisterType; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class UniversityController extends Controller { @@ -15,6 +16,7 @@ class UniversityController extends Controller * "/universite/accueil", * name="data_teaching_university_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -30,6 +32,7 @@ class UniversityController extends Controller * "/universite/liste", * name="data_teaching_university_list" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function listAction() { @@ -46,6 +49,8 @@ class UniversityController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($slug) { @@ -65,6 +70,8 @@ class UniversityController extends Controller * "/universite/nouveau", * name="data_teaching_university_register" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function registerAction(Request $request) { @@ -96,6 +103,9 @@ class UniversityController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($slug, Request $request) { @@ -129,6 +139,8 @@ class UniversityController extends Controller * "slug"="\S{0,255}" * } * ) + * @param $slug + * @return \Symfony\Component\HttpFoundation\Response */ public function deleteAction($slug) { diff --git a/src/HOME/HomeBundle/Controller/EmailNotificationController.php b/src/HOME/HomeBundle/Controller/EmailNotificationController.php index 6d846d2..93a3522 100644 --- a/src/HOME/HomeBundle/Controller/EmailNotificationController.php +++ b/src/HOME/HomeBundle/Controller/EmailNotificationController.php @@ -3,9 +3,13 @@ namespace HOME\HomeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class EmailNotificationController extends Controller { + /** + * @return \Symfony\Component\HttpFoundation\Response + */ public function indexAction() { $em = $this->getDoctrine()->getManager(); diff --git a/src/HOME/HomeBundle/Controller/HomeController.php b/src/HOME/HomeBundle/Controller/HomeController.php index 0c654be..0b6aad7 100644 --- a/src/HOME/HomeBundle/Controller/HomeController.php +++ b/src/HOME/HomeBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace HOME\HomeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -17,6 +18,7 @@ class HomeController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/TB/AdministrationBundle/Controller/HomeController.php b/src/TB/AdministrationBundle/Controller/HomeController.php index 7e972ea..f31e1c3 100644 --- a/src/TB/AdministrationBundle/Controller/HomeController.php +++ b/src/TB/AdministrationBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace TB\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -11,6 +12,7 @@ class HomeController extends Controller * "/", * name="tb_administration_home_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/TB/AdministrationBundle/Controller/TestedGameController.php b/src/TB/AdministrationBundle/Controller/TestedGameController.php index 51cdeea..7c708c9 100644 --- a/src/TB/AdministrationBundle/Controller/TestedGameController.php +++ b/src/TB/AdministrationBundle/Controller/TestedGameController.php @@ -10,9 +10,14 @@ use TB\ModelBundle\Form\TestedGameEditType; use TB\ModelBundle\Form\TestedGameIconEditType; use TB\ModelBundle\Form\TestedGameType; use TB\ModelBundle\Form\TestedItemEditType; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestedGameController extends Controller { + /** + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response + */ public function createAction(Request $request) { $em = $this->getDoctrine()->getManager(); @@ -42,6 +47,11 @@ class TestedGameController extends Controller )); } + /** + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response + */ public function addItemsAction($testedGame_id, Request $request) { $em = $this->getDoctrine()->getManager(); @@ -70,6 +80,12 @@ class TestedGameController extends Controller )); } + /** + * @param $testedGame_id + * @param $testedItem_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response + */ public function editItemAction($testedGame_id, $testedItem_id, Request $request) { $em = $this->getDoctrine()->getManager(); @@ -99,6 +115,11 @@ class TestedGameController extends Controller )); } + /** + * @param $testedGame_id + * @param $testedItem_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse + */ public function removeItemAction($testedGame_id, $testedItem_id) { $em = $this->getDoctrine()->getManager(); @@ -121,6 +142,11 @@ class TestedGameController extends Controller return $this->redirect($this->generateUrl('tb_administration_testedgame_view', array('testedGame_id' => $testedGame->getId()))); } + /** + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response + */ public function editAction($testedGame_id, Request $request) { $em = $this->getDoctrine()->getManager(); @@ -144,6 +170,11 @@ class TestedGameController extends Controller )); } + /** + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response + */ public function editIconAction($testedGame_id, Request $request) { $em = $this->getDoctrine()->getManager(); @@ -167,6 +198,10 @@ class TestedGameController extends Controller )); } + /** + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\Response + */ public function viewAction($testedGame_id) { $em = $this->getDoctrine()->getManager(); @@ -179,6 +214,10 @@ class TestedGameController extends Controller )); } + /** + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse + */ public function updateOnlineStatusAction($testedGame_id) { $em = $this->getDoctrine()->getManager(); @@ -200,6 +239,10 @@ class TestedGameController extends Controller return $this->redirectToRoute('tb_administration_testedgame_view', array('testedGame_id' => $testedGame_id)); } + /** + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse + */ public function updateOfficialStatusAction($testedGame_id) { $em = $this->getDoctrine()->getManager(); @@ -221,6 +264,10 @@ class TestedGameController extends Controller return $this->redirectToRoute('tb_administration_testedgame_view', array('testedGame_id' => $testedGame_id)); } + /** + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse + */ public function removeAction($testedGame_id) { $em = $this->getDoctrine()->getManager(); diff --git a/src/TB/AdministrationBundle/Controller/TestedSessionController.php b/src/TB/AdministrationBundle/Controller/TestedSessionController.php index 1d85a56..fd1ece7 100644 --- a/src/TB/AdministrationBundle/Controller/TestedSessionController.php +++ b/src/TB/AdministrationBundle/Controller/TestedSessionController.php @@ -4,9 +4,14 @@ namespace TB\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestedSessionController extends Controller { + /** + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response + */ public function indexAction(Request $request) { $em = $this->getDoctrine()->getManager(); @@ -24,6 +29,11 @@ class TestedSessionController extends Controller )); } + /** + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response + */ public function getByTestedGameAction($testedGame_id, Request $request) { $em = $this->getDoctrine()->getManager(); @@ -44,6 +54,10 @@ class TestedSessionController extends Controller )); } + /** + * @param $testedSession_id + * @return \Symfony\Component\HttpFoundation\Response + */ public function viewAction($testedSession_id) { $em = $this->getDoctrine()->getManager(); diff --git a/src/TB/HomeBundle/Controller/HomeController.php b/src/TB/HomeBundle/Controller/HomeController.php index 31f0885..3c374c9 100644 --- a/src/TB/HomeBundle/Controller/HomeController.php +++ b/src/TB/HomeBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace TB\HomeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -17,6 +18,7 @@ class HomeController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -37,6 +39,7 @@ class HomeController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function registrationArgAction() { @@ -54,6 +57,7 @@ class HomeController extends Controller * } * } * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function getAllTestedGamesAction() { @@ -63,7 +67,9 @@ class HomeController extends Controller return $this->render('TBHomeBundle:Home:getAllTestedGame.html.twig', array('testedGames' => $testedGames)); } - + /** + * @return \Symfony\Component\HttpFoundation\Response + */ public function getAllOfficialAction() { $em = $this->getDoctrine()->getManager(); diff --git a/src/TB/PersonalPlaceBundle/Controller/HomeController.php b/src/TB/PersonalPlaceBundle/Controller/HomeController.php index 0771556..5737fca 100644 --- a/src/TB/PersonalPlaceBundle/Controller/HomeController.php +++ b/src/TB/PersonalPlaceBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace TB\PersonalPlaceBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -11,6 +12,7 @@ class HomeController extends Controller * "/profile/testedGame", * name="tb_personalplace_home_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/TB/PersonalPlaceBundle/Controller/PublicController.php b/src/TB/PersonalPlaceBundle/Controller/PublicController.php index f9f731d..220a1f5 100644 --- a/src/TB/PersonalPlaceBundle/Controller/PublicController.php +++ b/src/TB/PersonalPlaceBundle/Controller/PublicController.php @@ -3,6 +3,7 @@ namespace TB\PersonalPlaceBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class PublicController extends Controller { diff --git a/src/TB/PersonalPlaceBundle/Controller/TestedGameController.php b/src/TB/PersonalPlaceBundle/Controller/TestedGameController.php index b8dab30..9674b9b 100644 --- a/src/TB/PersonalPlaceBundle/Controller/TestedGameController.php +++ b/src/TB/PersonalPlaceBundle/Controller/TestedGameController.php @@ -10,6 +10,7 @@ use TB\ModelBundle\Form\TestedGameEditType; use TB\ModelBundle\Form\TestedGameIconEditType; use TB\ModelBundle\Form\TestedGameType; use TB\ModelBundle\Form\TestedItemEditType; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestedGameController extends Controller { diff --git a/src/TB/PlayerBundle/Controller/PlayerController.php b/src/TB/PlayerBundle/Controller/PlayerController.php index f888a29..c3ede5c 100644 --- a/src/TB/PlayerBundle/Controller/PlayerController.php +++ b/src/TB/PlayerBundle/Controller/PlayerController.php @@ -8,6 +8,7 @@ use Symfony\Component\HttpFoundation\Response; use TB\ModelBundle\Entity\TestedItemResult; use TB\ModelBundle\Entity\TestedItemResultSession; use TB\ModelBundle\Entity\TestedSession; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class PlayerController extends Controller { @@ -22,6 +23,9 @@ class PlayerController extends Controller * "expose"=true * } * ) + * @param $testedGame_id + * @param Request $request + * @return Response */ public function indexAction($testedGame_id, Request $request) { @@ -73,6 +77,8 @@ class PlayerController extends Controller * "expose"=true * } * ) + * @param $answers + * @return Response */ public function trackingAction($answers) { @@ -110,6 +116,8 @@ class PlayerController extends Controller * "expose"=true * } * ) + * @param $testedSession_id + * @return Response */ public function trackingTooSmallWindowAction($testedSession_id) { diff --git a/src/TB/TestedGameBundle/Controller/TestedGameController.php b/src/TB/TestedGameBundle/Controller/TestedGameController.php index 76a0374..515a081 100644 --- a/src/TB/TestedGameBundle/Controller/TestedGameController.php +++ b/src/TB/TestedGameBundle/Controller/TestedGameController.php @@ -10,6 +10,7 @@ use TB\ModelBundle\Form\TestedGameEditType; use TB\ModelBundle\Form\TestedGameIconEditType; use TB\ModelBundle\Form\TestedGameType; use TB\ModelBundle\Form\TestedItemEditType; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestedGameController extends Controller { @@ -18,6 +19,8 @@ class TestedGameController extends Controller * "/testedGame/create", * name="tb_testedgame_testedgame_create" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function createAction(Request $request) { @@ -65,6 +68,8 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\Response */ public function createEndAction($testedGame_id) { @@ -107,6 +112,9 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function addItemsAction($testedGame_id, Request $request) { @@ -145,6 +153,10 @@ class TestedGameController extends Controller * "testedItem_id"="\d+" * } * ) + * @param $testedGame_id + * @param $testedItem_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editItemAction($testedGame_id, $testedItem_id, Request $request) { @@ -184,6 +196,9 @@ class TestedGameController extends Controller * "testedItem_id"="\d+" * } * ) + * @param $testedGame_id + * @param $testedItem_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function removeItemAction($testedGame_id, $testedItem_id) { @@ -215,6 +230,9 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editAction($testedGame_id, Request $request) { @@ -247,6 +265,9 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\RedirectResponse|\Symfony\Component\HttpFoundation\Response */ public function editIconAction($testedGame_id, Request $request) { @@ -279,6 +300,8 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($testedGame_id) { @@ -300,6 +323,8 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function updateOnlineStatusAction($testedGame_id) { @@ -330,6 +355,8 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function updateOfficialStatusAction($testedGame_id) { @@ -360,6 +387,8 @@ class TestedGameController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function removeAction($testedGame_id) { diff --git a/src/TB/TestedGameBundle/Controller/TestedSessionController.php b/src/TB/TestedGameBundle/Controller/TestedSessionController.php index 5a2ec86..155bbbf 100644 --- a/src/TB/TestedGameBundle/Controller/TestedSessionController.php +++ b/src/TB/TestedGameBundle/Controller/TestedSessionController.php @@ -4,6 +4,7 @@ namespace TB\TestedGameBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestedSessionController extends Controller { @@ -12,6 +13,8 @@ class TestedSessionController extends Controller * "/testedSessions", * name="tb_testedgame_testedsession_index" * ) + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request) { @@ -38,6 +41,9 @@ class TestedSessionController extends Controller * "testedGame_id"="\d+" * } * ) + * @param $testedGame_id + * @param Request $request + * @return \Symfony\Component\HttpFoundation\Response */ public function getByTestedGameAction($testedGame_id, Request $request) { @@ -67,6 +73,8 @@ class TestedSessionController extends Controller * "testedSession_id"="\d+" * } * ) + * @param $testedSession_id + * @return \Symfony\Component\HttpFoundation\Response */ public function viewAction($testedSession_id) { diff --git a/src/TOOLS/AdministrationBundle/Controller/HomeController.php b/src/TOOLS/AdministrationBundle/Controller/HomeController.php index fd05161..6d4bf2e 100644 --- a/src/TOOLS/AdministrationBundle/Controller/HomeController.php +++ b/src/TOOLS/AdministrationBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace TOOLS\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -11,6 +12,7 @@ class HomeController extends Controller * "/accueil", * name="tools_administration_home_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/TOOLS/AdministrationBundle/Controller/TestController.php b/src/TOOLS/AdministrationBundle/Controller/TestController.php index 9b77ed4..70309e0 100644 --- a/src/TOOLS/AdministrationBundle/Controller/TestController.php +++ b/src/TOOLS/AdministrationBundle/Controller/TestController.php @@ -3,6 +3,7 @@ namespace TOOLS\AdministrationBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class TestController extends Controller { @@ -11,6 +12,7 @@ class TestController extends Controller * "/test/datation", * name="tools_administration_test_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -33,6 +35,7 @@ class TestController extends Controller * "/test/createurs", * name="tools_administration_test_creator" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function creatorAction() { diff --git a/src/TOOLS/HomeBundle/Controller/HomeController.php b/src/TOOLS/HomeBundle/Controller/HomeController.php index be8bc8f..bdf927b 100644 --- a/src/TOOLS/HomeBundle/Controller/HomeController.php +++ b/src/TOOLS/HomeBundle/Controller/HomeController.php @@ -3,6 +3,7 @@ namespace TOOLS\HomeBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class HomeController extends Controller { @@ -11,6 +12,7 @@ class HomeController extends Controller * "/", * name="tools_home_home_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { diff --git a/src/TOOLS/NerBundle/Controller/CreatorController.php b/src/TOOLS/NerBundle/Controller/CreatorController.php index fc4b8ad..a0b16af 100644 --- a/src/TOOLS/NerBundle/Controller/CreatorController.php +++ b/src/TOOLS/NerBundle/Controller/CreatorController.php @@ -4,6 +4,7 @@ namespace TOOLS\NerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use TOOLS\NerBundle\Entity\NameEntityRecognition; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class CreatorController extends Controller { @@ -12,6 +13,7 @@ class CreatorController extends Controller * "/createur/index", * name="tools_ner_creator_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -31,6 +33,8 @@ class CreatorController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\Response */ public function generateCreatorAction($id) { diff --git a/src/TOOLS/NerBundle/Controller/IndexController.php b/src/TOOLS/NerBundle/Controller/IndexController.php index 712ecd1..74810df 100644 --- a/src/TOOLS/NerBundle/Controller/IndexController.php +++ b/src/TOOLS/NerBundle/Controller/IndexController.php @@ -3,6 +3,7 @@ namespace TOOLS\NerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class IndexController extends Controller { @@ -11,6 +12,7 @@ class IndexController extends Controller * "/", * name="tools_ner_index_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -30,6 +32,8 @@ class IndexController extends Controller * "field"="\S{0,255}" * } * ) + * @param $field + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function generateNameEntityRecognitionAction($field) { @@ -61,6 +65,7 @@ class IndexController extends Controller * "/with-synsets", * name="tools_ner_index_synsets" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function synsetsAction() { @@ -84,6 +89,7 @@ class IndexController extends Controller * "/no-synsets", * name="tools_ner_index_noSynsets" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function noSynsetsAction() { @@ -107,6 +113,7 @@ class IndexController extends Controller * "/no-synset", * name="tools_ner_index_noSynset" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function noSynsetAction() { @@ -131,6 +138,7 @@ class IndexController extends Controller * "/no-synset-harvest", * name="tools_ner_index_noSynsetHarvest" * ) + * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function noSynsetHarvestAction() { diff --git a/src/TOOLS/NerBundle/Controller/LocationController.php b/src/TOOLS/NerBundle/Controller/LocationController.php index e38b3f8..2986f0a 100644 --- a/src/TOOLS/NerBundle/Controller/LocationController.php +++ b/src/TOOLS/NerBundle/Controller/LocationController.php @@ -3,6 +3,7 @@ namespace TOOLS\NerBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; class LocationController extends Controller { @@ -11,6 +12,7 @@ class LocationController extends Controller * "/location/index", * name="tools_ner_location_index" * ) + * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction() { @@ -30,6 +32,8 @@ class LocationController extends Controller * "id"="\d+" * } * ) + * @param $id + * @return \Symfony\Component\HttpFoundation\Response */ public function generateLocationAction($id) { diff --git a/symfony.lock b/symfony.lock index 4aa0f63..d7d3f7f 100644 --- a/symfony.lock +++ b/symfony.lock @@ -1,7 +1,202 @@ { + "behat/transliterator": { + "version": "v1.2.0" + }, + "composer/ca-bundle": { + "version": "1.1.4" + }, + "doctrine/annotations": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.0", + "ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672" + }, + "files": [ + "config/routes/annotations.yaml" + ] + }, + "doctrine/cache": { + "version": "v1.8.0" + }, + "doctrine/collections": { + "version": "v1.6.1" + }, + "doctrine/common": { + "version": "v2.10.0" + }, + "doctrine/dbal": { + "version": "v2.9.2" + }, + "doctrine/doctrine-bundle": { + "version": "1.6", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "1.6", + "ref": "453e89b78ded666f351617baca5ae40d20622351" + }, + "files": [ + "config/packages/doctrine.yaml", + "config/packages/prod/doctrine.yaml", + "src/Entity/.gitignore", + "src/Repository/.gitignore" + ] + }, + "doctrine/doctrine-cache-bundle": { + "version": "1.3.5" + }, + "doctrine/event-manager": { + "version": "v1.0.0" + }, + "doctrine/inflector": { + "version": "v1.3.0" + }, + "doctrine/instantiator": { + "version": "1.2.0" + }, + "doctrine/lexer": { + "version": "v1.0.1" + }, + "doctrine/orm": { + "version": "v2.6.3" + }, + "doctrine/persistence": { + "version": "1.1.1" + }, + "doctrine/reflection": { + "version": "v1.0.0" + }, + "erusev/parsedown": { + "version": "1.7.3" + }, + "erusev/parsedown-extra": { + "version": "0.7.1" + }, + "fig/link-util": { + "version": "1.0.0" + }, + "friendsofsymfony/user-bundle": { + "version": "v2.1.2" + }, + "gedmo/doctrine-extensions": { + "version": "v2.4.37" + }, + "incenteev/composer-parameter-handler": { + "version": "v2.1.3" + }, + "jdorn/sql-formatter": { + "version": "v1.2.17" + }, + "jeremyjumeau/parsedown-bundle": { + "version": "v1.0.2" + }, + "kriswallsmith/buzz": { + "version": "1.0", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "1.0", + "ref": "1da7c9584a9face8cc2a9ee42a04ae33c284bea8" + }, + "files": [ + "config/packages/buzz.yaml" + ] + }, + "league/html-to-markdown": { + "version": "4.8.1" + }, + "monolog/monolog": { + "version": "1.24.0" + }, + "paragonie/random_compat": { + "version": "v2.0.18" + }, + "php-http/httplug": { + "version": "v2.0.0" + }, + "php-http/promise": { + "version": "v1.0.0" + }, "presta/sitemap-bundle": { "version": "v1.6.0" }, + "psr/cache": { + "version": "1.0.1" + }, + "psr/container": { + "version": "1.0.0" + }, + "psr/http-client": { + "version": "1.0.0" + }, + "psr/http-factory": { + "version": "1.0.0" + }, + "psr/http-message": { + "version": "1.0.1" + }, + "psr/link": { + "version": "1.0.0" + }, + "psr/log": { + "version": "1.1.0" + }, + "psr/simple-cache": { + "version": "1.0.1" + }, + "sensio/buzz-bundle": { + "version": "1.1-dev" + }, + "sensio/distribution-bundle": { + "version": "v5.0.24" + }, + "sensio/framework-extra-bundle": { + "version": "5.2", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "5.2", + "ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b" + }, + "files": [ + "config/packages/sensio_framework_extra.yaml" + ] + }, + "sensio/generator-bundle": { + "version": "v3.1.7" + }, + "sensiolabs/security-checker": { + "version": "4.0", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "4.0", + "ref": "05daf6b214e54aed4089f3480f944a67ac3a7889" + }, + "files": [ + "config/packages/security_checker.yaml" + ] + }, + "stof/doctrine-extensions-bundle": { + "version": "1.2", + "recipe": { + "repo": "github.com/symfony/recipes-contrib", + "branch": "master", + "version": "1.2", + "ref": "6c1ceb662f8997085f739cd089bfbef67f245983" + }, + "files": [ + "config/packages/stof_doctrine_extensions.yaml" + ] + }, + "swiftmailer/swiftmailer": { + "version": "v5.4.12" + }, + "symfony/asset": { + "version": "v4.2.7" + }, "symfony/flex": { "version": "1.0", "recipe": { @@ -13,5 +208,86 @@ "files": [ ".env" ] + }, + "symfony/monolog-bundle": { + "version": "3.1", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.1", + "ref": "18ebf5a940573a20de06f9c4060101eeb438cf3d" + }, + "files": [ + "config/packages/dev/monolog.yaml", + "config/packages/prod/monolog.yaml", + "config/packages/test/monolog.yaml" + ] + }, + "symfony/phpunit-bridge": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "43a398157bbd3379d98c34006c7b10a57bce9ef9" + }, + "files": [ + ".env.test", + "bin/phpunit", + "config/bootstrap.php", + "config/services_test.yaml", + "phpunit.xml.dist", + "tests/.gitignore" + ] + }, + "symfony/polyfill-apcu": { + "version": "v1.11.0" + }, + "symfony/polyfill-ctype": { + "version": "v1.11.0" + }, + "symfony/polyfill-intl-icu": { + "version": "v1.11.0" + }, + "symfony/polyfill-mbstring": { + "version": "v1.11.0" + }, + "symfony/polyfill-php56": { + "version": "v1.11.0" + }, + "symfony/polyfill-php70": { + "version": "v1.11.0" + }, + "symfony/polyfill-util": { + "version": "v1.11.0" + }, + "symfony/swiftmailer-bundle": { + "version": "2.5", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "2.5", + "ref": "3db029c03e452b4a23f7fc45cec7c922c2247eb8" + }, + "files": [ + "config/packages/dev/swiftmailer.yaml", + "config/packages/swiftmailer.yaml", + "config/packages/test/swiftmailer.yaml" + ] + }, + "symfony/symfony": { + "version": "3.3", + "recipe": { + "repo": "github.com/symfony/recipes", + "branch": "master", + "version": "3.3", + "ref": "d9ffde95d60fa64c4e39752016ee534460b7c691" + } + }, + "symfony/templating": { + "version": "v4.2.7" + }, + "twig/twig": { + "version": "v2.8.1" } } diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..e69de29 -- GitLab