diff --git a/composer.json b/composer.json index 594774f..e67e99f 100644 --- a/composer.json +++ b/composer.json @@ -10,6 +10,7 @@ "friendsofsymfony/user-bundle": "2.1.2", "sensio/framework-extra-bundle": "^5.2", "symfony/console": "*", + "symfony/dotenv": "4.1.*", "symfony/flex": "^1.1", "symfony/framework-bundle": "*", "symfony/orm-pack": "^1.0", @@ -21,7 +22,6 @@ "twig/twig": "^2.0" }, "require-dev": { - "symfony/dotenv": "*", "symfony/maker-bundle": "^1.9" }, "config": { diff --git a/composer.lock b/composer.lock index b7193b0..4cd9845 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": "6ed446de71c0d80cf4f0b333c2967ee7", + "content-hash": "0ad930021fa3467254940579a47c9ccd", "packages": [ { "name": "doctrine/annotations", @@ -2512,6 +2512,63 @@ "homepage": "https://symfony.com", "time": "2018-10-30T17:00:46+00:00" }, + { + "name": "symfony/dotenv", + "version": "v4.1.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/dotenv.git", + "reference": "963fc7f36f81315e31831d6cd96c9578ec184059" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/dotenv/zipball/963fc7f36f81315e31831d6cd96c9578ec184059", + "reference": "963fc7f36f81315e31831d6cd96c9578ec184059", + "shasum": "" + }, + "require": { + "php": "^7.1.3" + }, + "require-dev": { + "symfony/process": "~3.4|~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\Dotenv\\": "" + }, + "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": "Registers environment variables from a .env file", + "homepage": "https://symfony.com", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "time": "2018-11-26T10:26:29+00:00" + }, { "name": "symfony/event-dispatcher", "version": "v4.1.7", @@ -4693,63 +4750,6 @@ ], "time": "2018-10-10T09:24:14+00:00" }, - { - "name": "symfony/dotenv", - "version": "v4.1.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/dotenv.git", - "reference": "9f3074b55bc56627f61fb2c17d573ee7df8e1319" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/dotenv/zipball/9f3074b55bc56627f61fb2c17d573ee7df8e1319", - "reference": "9f3074b55bc56627f61fb2c17d573ee7df8e1319", - "shasum": "" - }, - "require": { - "php": "^7.1.3" - }, - "require-dev": { - "symfony/process": "~3.4|~4.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "4.1-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Component\\Dotenv\\": "" - }, - "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": "Registers environment variables from a .env file", - "homepage": "https://symfony.com", - "keywords": [ - "dotenv", - "env", - "environment" - ], - "time": "2018-10-12T12:56:03+00:00" - }, { "name": "symfony/maker-bundle", "version": "v1.9.0", diff --git a/config/packages/fos_rest.yaml b/config/packages/fos_rest.yaml new file mode 100644 index 0000000..0440800 --- /dev/null +++ b/config/packages/fos_rest.yaml @@ -0,0 +1,15 @@ +# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html +fos_rest: ~ +# param_fetcher_listener: true +# allowed_methods_listener: true +# routing_loader: true +# view: +# view_response_listener: true +# exception: +# codes: +# App\Exception\MyException: 403 +# messages: +# App\Exception\MyException: Forbidden area. +# format_listener: +# rules: +# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }