From 70c0a9259560a3efee9b103008b94087071c1a65 Mon Sep 17 00:00:00 2001 From: Eric Wheeler Date: Tue, 12 Jul 2016 17:06:24 -0700 Subject: [PATCH] Added incenteev/param handler --- app/config/config.yml | 14 +++++----- app/config/config.yml.dist | 15 +++++++++++ composer.json | 17 +++++++++++- composer.lock | 55 ++++++++++++++++++++++++++++++++++++-- 4 files changed, 91 insertions(+), 10 deletions(-) create mode 100644 app/config/config.yml.dist diff --git a/app/config/config.yml b/app/config/config.yml index 4d0e412..40a5313 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -1,16 +1,16 @@ +# This file is auto-generated during the composer install app: debug: true environment: dev - title: R. Eric Wheeler | Resume + title: 'R. Eric Wheeler | Resume' email: eric@rewiv.com phone: 510-646-2135 - schema: https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json + schema: 'https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json' captcha: true captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q- captcha_secret: 6LcvmSQTAAAAAITkvYJjgLar1LqGGLz-ic0ZMiXo -twig: - theme: default - paths: + twig_theme: default + twig_paths: - views - template: uikit.html.twig - + - default + twig_template: uikit.html.twig diff --git a/app/config/config.yml.dist b/app/config/config.yml.dist new file mode 100644 index 0000000..a06a44c --- /dev/null +++ b/app/config/config.yml.dist @@ -0,0 +1,15 @@ +app: + debug: true + environment: dev + title: R. Eric Wheeler | Resume + email: eric@rewiv.com + phone: 510-646-2135 + schema: https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json + captcha: true + captcha_sitekey: 6LcvmSQTAAAAAMmf9w6mhCbpdLvknuD9SGVHT0q- + captcha_secret: 6LcvmSQTAAAAAITkvYJjgLar1LqGGLz-ic0ZMiXo + twig_theme: default + twig_paths: + - views + twig_template: uikit.html.twig + diff --git a/composer.json b/composer.json index dab99cd..f5774b8 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,8 @@ "twig/extensions": "^1.3", "symfony/config": "^3.1", "symfony/security-csrf": "^3.1", - "knplabs/console-service-provider": "^2.0" + "knplabs/console-service-provider": "^2.0", + "incenteev/composer-parameter-handler": "^2.1" }, "require-dev": { "symfony/debug": "~2.8|^3.0", @@ -62,5 +63,19 @@ "Sikofitt\\": "src/Sikofitt" }, "classmap": ["app/App.php"] + }, + "scripts": { + "post-update-cmd": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters" + ], + "post-install-cmd": [ + "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters" + ] + }, + "extra": { + "incenteev-parameters": { + "file": "app/config/config.yml", + "parameter-key": "app" + } } } diff --git a/composer.lock b/composer.lock index 73699dd..25cd546 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,8 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "25287502f3d13d81e204c1bb9189f7d3", - "content-hash": "fe01ca158705636b3b5be2fd4c277edb", + "hash": "58b6f8f80e5846af7b9ae23a628a0861", + "content-hash": "9d13427d982ec276ccfba5e7fdc2cd8a", "packages": [ { "name": "google/recaptcha", @@ -189,6 +189,57 @@ ], "time": "2016-02-11 16:21:17" }, + { + "name": "incenteev/composer-parameter-handler", + "version": "v2.1.2", + "source": { + "type": "git", + "url": "https://github.com/Incenteev/ParameterHandler.git", + "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", + "reference": "d7ce7f06136109e81d1cb9d57066c4d4a99cf1cc", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/yaml": "~2.3|~3.0" + }, + "require-dev": { + "composer/composer": "1.0.*@dev", + "phpspec/prophecy-phpunit": "~1.0", + "symfony/filesystem": "~2.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Incenteev\\ParameterHandler\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Christophe Coevoet", + "email": "stof@notk.org" + } + ], + "description": "Composer script handling your ignored parameter file", + "homepage": "https://github.com/Incenteev/ParameterHandler", + "keywords": [ + "parameters management" + ], + "time": "2015-11-10 17:04:01" + }, { "name": "justinrainbow/json-schema", "version": "1.6.1",