diff --git a/.idea/php.xml b/.idea/php.xml
index 38689f6e..c53426a2 100644
--- a/.idea/php.xml
+++ b/.idea/php.xml
@@ -93,6 +93,7 @@
+
diff --git a/.idea/sf4-test.iml b/.idea/sf4-test.iml
index 9f7b3313..af68339b 100644
--- a/.idea/sf4-test.iml
+++ b/.idea/sf4-test.iml
@@ -36,6 +36,7 @@
+
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 55dd6033..eb4f0dca 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -7,10 +7,11 @@
-
-
+
+
+
@@ -34,11 +35,11 @@
-
+
-
-
+
+
@@ -49,18 +50,60 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -93,13 +136,16 @@
@@ -210,6 +256,7 @@
+
@@ -243,45 +290,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -368,12 +399,12 @@
1520949897852
-
+
-
+
@@ -384,7 +415,7 @@
-
+
@@ -677,31 +708,65 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/assets/css/global.scss b/assets/css/global.scss
new file mode 100644
index 00000000..8830e3e9
--- /dev/null
+++ b/assets/css/global.scss
@@ -0,0 +1,4 @@
+$brand-primary: darken(#428bca, 20%);
+
+// the ~ allows you to reference things in node_modules
+@import '~bootstrap-sass/assets/stylesheets/bootstrap';
diff --git a/assets/js/app.js b/assets/js/app.js
new file mode 100644
index 00000000..26b3dcc7
--- /dev/null
+++ b/assets/js/app.js
@@ -0,0 +1,2 @@
+// require('../css/global.scss');
+console.log('hello');
diff --git a/composer.json b/composer.json
index 8fd2d849..9180c471 100644
--- a/composer.json
+++ b/composer.json
@@ -5,6 +5,7 @@
"php": "^7.0.8",
"ext-iconv": "*",
"sensio/framework-extra-bundle": "^5.1",
+ "sensiolabs/security-checker": "^4.1",
"symfony/asset": "^3.4",
"symfony/console": "^3.4",
"symfony/debug-pack": "*",
@@ -57,7 +58,8 @@
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
- "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd"
+ "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd",
+ "security-checker security:check": "script"
},
"post-install-cmd": [
"@auto-scripts"
diff --git a/composer.lock b/composer.lock
index 56cec5b2..67b7f162 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,8 +4,64 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "content-hash": "ed6ed212a7401fdb77a64ea454462831",
+ "content-hash": "fb1fa43df94930a543d8c27c9b62c4ee",
"packages": [
+ {
+ "name": "composer/ca-bundle",
+ "version": "1.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/composer/ca-bundle.git",
+ "reference": "943b2c4fcad1ef178d16a713c2468bf7e579c288"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/composer/ca-bundle/zipball/943b2c4fcad1ef178d16a713c2468bf7e579c288",
+ "reference": "943b2c4fcad1ef178d16a713c2468bf7e579c288",
+ "shasum": ""
+ },
+ "require": {
+ "ext-openssl": "*",
+ "ext-pcre": "*",
+ "php": "^5.3.2 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35",
+ "psr/log": "^1.0",
+ "symfony/process": "^2.5 || ^3.0 || ^4.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Composer\\CaBundle\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jordi Boggiano",
+ "email": "j.boggiano@seld.be",
+ "homepage": "http://seld.be"
+ }
+ ],
+ "description": "Lets you find a path to the system CA bundle, and includes a fallback to the Mozilla CA bundle.",
+ "keywords": [
+ "cabundle",
+ "cacert",
+ "certificate",
+ "ssl",
+ "tls"
+ ],
+ "time": "2017-11-29T09:37:33+00:00"
+ },
{
"name": "doctrine/annotations",
"version": "v1.4.0",
@@ -1777,6 +1833,51 @@
],
"time": "2018-02-14T08:40:54+00:00"
},
+ {
+ "name": "sensiolabs/security-checker",
+ "version": "v4.1.8",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sensiolabs/security-checker.git",
+ "reference": "dc270d5fec418cc6ac983671dba5d80ffaffb142"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sensiolabs/security-checker/zipball/dc270d5fec418cc6ac983671dba5d80ffaffb142",
+ "reference": "dc270d5fec418cc6ac983671dba5d80ffaffb142",
+ "shasum": ""
+ },
+ "require": {
+ "composer/ca-bundle": "^1.0",
+ "symfony/console": "~2.7|~3.0|~4.0"
+ },
+ "bin": [
+ "security-checker"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.1-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "SensioLabs\\Security": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien.potencier@gmail.com"
+ }
+ ],
+ "description": "A security checker for your composer.lock",
+ "time": "2018-02-28T22:10:01+00:00"
+ },
{
"name": "swiftmailer/swiftmailer",
"version": "v6.0.2",
diff --git a/config/packages/dev/security_checker.yaml b/config/packages/dev/security_checker.yaml
new file mode 100644
index 00000000..0f9cf00f
--- /dev/null
+++ b/config/packages/dev/security_checker.yaml
@@ -0,0 +1,9 @@
+services:
+ SensioLabs\Security\SecurityChecker:
+ public: false
+
+ SensioLabs\Security\Command\SecurityCheckerCommand:
+ arguments: ['@SensioLabs\Security\SecurityChecker']
+ public: false
+ tags:
+ - { name: console.command, command: 'security:check' }
diff --git a/package.json b/package.json
index d4658b6e..33d49cee 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,9 @@
{
"devDependencies": {
- "@symfony/webpack-encore": "^0.17.0"
+ "@symfony/webpack-encore": "^0.17.0",
+ "bootstrap-sass": "^3.3.7",
+ "node-sass": "^4.7.2",
+ "sass-loader": "^6.0.7"
},
"license": "UNLICENSED",
"private": true,
diff --git a/symfony.lock b/symfony.lock
index cf9269b1..a0b8a8ed 100644
--- a/symfony.lock
+++ b/symfony.lock
@@ -1,4 +1,7 @@
{
+ "composer/ca-bundle": {
+ "version": "1.1.0"
+ },
"doctrine/annotations": {
"version": "1.0",
"recipe": {
@@ -125,6 +128,15 @@
"ref": "aaddfdf43cdecd4cf91f992052d76c2cadc04543"
}
},
+ "sensiolabs/security-checker": {
+ "version": "4.0",
+ "recipe": {
+ "repo": "github.com/symfony/recipes",
+ "branch": "master",
+ "version": "4.0",
+ "ref": "e65a105bf4cd5b1b79012ba029954927f05922e8"
+ }
+ },
"swiftmailer/swiftmailer": {
"version": "v6.0.2"
},
diff --git a/templates/base.html.twig b/templates/base.html.twig
index a9a23283..f32d4c0a 100644
--- a/templates/base.html.twig
+++ b/templates/base.html.twig
@@ -3,7 +3,9 @@
{% block title %}Fiche de compte dynamique{% endblock %}
- {% block stylesheets %}{% endblock %}
+ {% block stylesheets %}
+
+ {% endblock %}
{% block body %}
@@ -11,6 +13,8 @@
Votre caisse mobile en ligne
{% endblock %}
-{% block javascripts %}{% endblock %}
+{% block javascripts %}
+
+{% endblock %}