diff --git a/composer.json b/composer.json index 8f7feba..6a783d1 100644 --- a/composer.json +++ b/composer.json @@ -1,4 +1,6 @@ { + "name" : "tools/activity-manager", + "description" : "Activity manager", "type" : "project", "license" : "proprietary", "minimum-stability" : "dev", @@ -16,7 +18,6 @@ "symfony/framework-bundle" : "5.2.*", "symfony/http-client" : "5.2.*", "symfony/intl" : "5.2.*", - "symfony/mailer" : "5.2.*", "symfony/mime" : "5.2.*", "symfony/monolog-bundle" : "^3.1", "symfony/notifier" : "5.2.*", @@ -74,8 +75,8 @@ }, "extra" : { "symfony" : { - "allow-contrib": true, - "require": "5.2.*" + "allow-contrib" : true, + "require" : "5.2.*" } } -} +} \ No newline at end of file diff --git a/composer.lock b/composer.lock index 82ca5ed..a0f338b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "7d31e53bd63f53a1c5e522886315cd8b", + "content-hash": "505cab55c0c708830bdb9dad7d0d6642", "packages": [ { "name": "composer/package-versions-deprecated", @@ -1400,74 +1400,6 @@ "time": "2020-07-30T16:57:33+00:00" }, { - "name": "egulias/email-validator", - "version": "2.1.25", - "source": { - "type": "git", - "url": "https://github.com/egulias/EmailValidator.git", - "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/0dbf5d78455d4d6a41d186da50adc1122ec066f4", - "reference": "0dbf5d78455d4d6a41d186da50adc1122ec066f4", - "shasum": "" - }, - "require": { - "doctrine/lexer": "^1.0.1", - "php": ">=5.5", - "symfony/polyfill-intl-idn": "^1.10" - }, - "require-dev": { - "dominicsayers/isemail": "^3.0.7", - "phpunit/phpunit": "^4.8.36|^7.5.15", - "satooshi/php-coveralls": "^1.0.1" - }, - "suggest": { - "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Egulias\\EmailValidator\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eduardo Gulias Davis" - } - ], - "description": "A library for validating emails against several RFCs", - "homepage": "https://github.com/egulias/EmailValidator", - "keywords": [ - "email", - "emailvalidation", - "emailvalidator", - "validation", - "validator" - ], - "support": { - "issues": "https://github.com/egulias/EmailValidator/issues", - "source": "https://github.com/egulias/EmailValidator/tree/2.1.25" - }, - "funding": [ - { - "url": "https://github.com/egulias", - "type": "github" - } - ], - "time": "2020-12-29T14:50:06+00:00" - }, - { "name": "friendsofphp/proxy-manager-lts", "version": "v1.0.3", "source": { @@ -4072,87 +4004,6 @@ "time": "2021-01-27T10:01:46+00:00" }, { - "name": "symfony/mailer", - "version": "v5.2.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/mailer.git", - "reference": "1efa11a8f59b8ba706aa6ee112c4675dce4dccf6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/mailer/zipball/1efa11a8f59b8ba706aa6ee112c4675dce4dccf6", - "reference": "1efa11a8f59b8ba706aa6ee112c4675dce4dccf6", - "shasum": "" - }, - "require": { - "egulias/email-validator": "^2.1.10", - "php": ">=7.2.5", - "psr/log": "~1.0", - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/mime": "^5.2", - "symfony/polyfill-php80": "^1.15", - "symfony/service-contracts": "^1.1|^2" - }, - "conflict": { - "symfony/http-kernel": "<4.4" - }, - "require-dev": { - "symfony/amazon-mailer": "^4.4|^5.0", - "symfony/google-mailer": "^4.4|^5.0", - "symfony/http-client-contracts": "^1.1|^2", - "symfony/mailchimp-mailer": "^4.4|^5.0", - "symfony/mailgun-mailer": "^4.4|^5.0", - "symfony/mailjet-mailer": "^4.4|^5.0", - "symfony/messenger": "^4.4|^5.0", - "symfony/postmark-mailer": "^4.4|^5.0", - "symfony/sendgrid-mailer": "^4.4|^5.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Symfony\\Component\\Mailer\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Helps sending emails", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/mailer/tree/v5.2.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2021-02-02T06:10:15+00:00" - }, - { "name": "symfony/mime", "version": "v5.2.3", "source": { diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml index c319176..67193cb 100644 --- a/config/packages/doctrine.yaml +++ b/config/packages/doctrine.yaml @@ -1,18 +1,18 @@ doctrine: dbal: - url: '%env(resolve:DATABASE_URL)%' + driver: 'pdo_mysql' + server_version: '5.7' + charset: utf8mb4 + default_table_options: + charset: utf8mb4 + collate: utf8mb4_unicode_ci - # IMPORTANT: You MUST configure your server version, - # either here or in the DATABASE_URL env var (see .env file) - #server_version: '13' + url: '%env(resolve:DATABASE_URL)%' orm: - auto_generate_proxy_classes: true - naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware - auto_mapping: true + default_entity_manager: default mappings: - App: - is_bundle: false - type: annotation - dir: '%kernel.project_dir%/src/Entity' - prefix: 'App\Entity' - alias: App + App\Entity: + type: xml + dir: '%kernel.project_dir%/config/packages/mapping' + prefix: App\Entity + is_bundle: false \ No newline at end of file diff --git a/config/routes.yaml b/config/routes.yaml index c3283aa..e69de29 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -1,3 +0,0 @@ -#index: -# path: / -# controller: App\Controller\DefaultController::index diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml deleted file mode 100644 index e92efc5..0000000 --- a/config/routes/annotations.yaml +++ /dev/null @@ -1,7 +0,0 @@ -controllers: - resource: ../../src/Controller/ - type: annotation - -kernel: - resource: ../../src/Kernel.php - type: annotation diff --git a/config/services.yaml b/config/services.yaml index c7296dd..ce70302 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -1,31 +1,11 @@ -# This file is the entry point to configure your own services. -# Files in the packages/ subdirectory configure your dependencies. - -# Put parameters here that don't need to change on each machine where the app is deployed -# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration -parameters: - services: - # default configuration for services in *this* file - _defaults: - autowire: true # Automatically injects dependencies in your services. - autoconfigure: true # Automatically registers your services as commands, event subscribers, etc. - - # makes classes in src/ available to be used as services - # this creates a service per class whose id is the fully-qualified class name - App\: - resource: '../src/' - exclude: - - '../src/DependencyInjection/' - - '../src/Entity/' - - '../src/Kernel.php' - - '../src/Tests/' - - # controllers are imported separately to make sure services can be injected - # as action arguments even if you don't extend any base controller class - App\Controller\: - resource: '../src/Controller/' - tags: ['controller.service_arguments'] - - # add more service definitions when explicit configuration is needed - # please note that last definitions always *replace* previous ones + _defaults: + autowire: true + autoconfigure: true + App\: + resource: ../src/* + exclude: ../src/{Migrations,Tests,Kernel.php} + App\Controller\: + resource: ../src/Controller + tags: + - controller.service_arguments \ No newline at end of file