Skip to content

Commit

Permalink
Initial implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentmuller committed Dec 24, 2019
0 parents commit 9c03cb6
Show file tree
Hide file tree
Showing 627 changed files with 83,331 additions and 0 deletions.
619 changes: 619 additions & 0 deletions .buildpath

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration

###> symfony/framework-bundle ###
APP_ENV=dev
app_environment=dev
# APP_DEBUG='true'
APP_SECRET=6269814b1f010a9f4c1433826511ff9a
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
DATABASE_URL=mysql://tj8om_user:KQAPknA36BCEXz2@localhost/tj8om_development
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
MAILER_URL=smtp://mail.infomaniak.com:587?encryption=tls&auth_mode=login&[email protected]&password=bibi.1962.calculation
MAILER_USER_NAME=Calculation
MAILER_USER_EMAIL=[email protected]
###< symfony/swiftmailer-bundle ###

###> google/recaptcha ###
GOOGLE_RECAPTCHA_SITE_KEY=6LcdNqwUAAAAAEcBorei6IQnto-hg21UahMuMsU7
GOOGLE_RECAPTCHA_SECRET=6LcdNqwUAAAAACy-1JPbiKqHOFgkVPfJ1aIpJTBQ
###< google/recaptcha ###

###> assets ###
asset_base=http://dev44/
asset_locale=http://dev44/
###< assets ###

###> cookies ###
cookie_path=/
cookie_secure=false
cookie_same_site=lax
###< cookies ###

###> API keys ###
bing_translator_key='30362999f5684851a2dec57aeae9b711'
google_translator_key='AIzaSyCWAllLJ6C3W6ppxznYBKzpek8LsiHeJ0Y'
yandex_translator_key='trnsl.1.1.20191119T094624Z.c4e30129801ea5a4.bd67f28d77e15cbe494e8b5ade2bdeaddf611f6c'
openweather_key='ae287d762c193fab23ae3177d8639e9f'
###< API keys ###
5 changes: 5 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/public/bundles/
/public/images/users/
/public/js/vendor
/var/
/vendor/
###< symfony/framework-bundle ###

###> symfony/phpunit-bridge ###
.phpunit
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

###> symfony/web-server-bundle ###
/.web-server-pid
###< symfony/web-server-bundle ###
1 change: 1 addition & 0 deletions .php_cs.cache

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>calculation</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.dubture.doctrine.core.doctrineBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.dltk.core.scriptbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.php.composer.core.builder.buildPathManagementBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.eclipsesource.jshint.ui.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.php.core.PHPNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>com.dubture.doctrine.core.doctrineNature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions .settings/com.eclipsesource.jshint.ui.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
eclipse.preferences.version=1
excluded=public/js/vendor/*.js
included=public/js/app//*.js
6 changes: 6 additions & 0 deletions .settings/org.eclipse.wst.common.project.facet.core.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="php.core.component" version="1"/>
<installed facet="php.component" version="5.4"/>
<installed facet="php.composer.component" version="1"/>
</faceted-project>
2 changes: 2 additions & 0 deletions .settings/org.eclipse.wst.validation.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
disabled=06vendor
eclipse.preferences.version=1
42 changes: 42 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/usr/bin/env php
<?php

use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Debug\Debug;

if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL;
}

set_time_limit(0);

require dirname(__DIR__).'/vendor/autoload.php';

if (!class_exists(Application::class)) {
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
}

$input = new ArgvInput();
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
}

if ($input->hasParameterOption('--no-debug', true)) {
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
}

require dirname(__DIR__).'/config/bootstrap.php';

if ($_SERVER['APP_DEBUG']) {
umask(0000);

if (class_exists(Debug::class)) {
Debug::enable();
}
}

$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$application = new Application($kernel);
$application->run($input);
13 changes: 13 additions & 0 deletions bin/phpunit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env php
<?php

if (!file_exists(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
exit(1);
}

if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
putenv('SYMFONY_PHPUNIT_DIR='.__DIR__.'/.phpunit');
}

require dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
102 changes: 102 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"name" : "bibi/calculation",
"license" : "proprietary",
"type" : "project",
"homepage" : "http://www.bibi.nu",
"description" : "Implementation of the calculation with Symfony 4.4.x.",
"authors" : [{
"name" : "Laurent Muller",
"email" : "[email protected]",
"role" : "Administrator",
"homepage" : "http://www.bibi.nu"
}
],
"support" : {
"email" : "[email protected]"
},
"keywords" : [
"symfony",
"calculation"
],
"require" : {
"php" : "^7.2",
"ext-ctype" : "*",
"ext-iconv" : "*",
"beberlei/doctrineextensions" : "~1.2",
"bjeavons/zxcvbn-php" : "~0.4",
"fpdf/fpdf" : "~1.81",
"friendsofsymfony/user-bundle" : "dev-master#78edc37a555c83d73aaa5fdf22d8abece79c783e",
"fzaninotto/faker" : "~1.9",
"google/recaptcha" : "~1.2",
"ob/highcharts-bundle" : "~1.6",
"robquistnl/simplehtmltotext" : "~1.1",
"sensio/framework-extra-bundle" : "^5.5",
"stof/doctrine-extensions-bundle" : "dev-master",
"symfony/asset" : "4.4.*",
"symfony/console" : "4.4.*",
"symfony/dotenv" : "4.4.*",
"symfony/expression-language" : "4.4.*",
"symfony/flex" : "^1.3.1",
"symfony/form" : "4.4.*",
"symfony/framework-bundle" : "4.4.*",
"symfony/http-client" : "4.4.*",
"symfony/intl" : "4.4.*",
"symfony/monolog-bundle" : "3.5.*",
"symfony/orm-pack" : "*",
"symfony/process" : "4.4.*",
"symfony/security-bundle" : "4.4.*",
"symfony/serializer-pack" : "*",
"symfony/swiftmailer-bundle" : "^3.1",
"symfony/translation" : "4.4.*",
"symfony/twig-bundle" : "4.4.*",
"symfony/validator" : "4.4.*",
"symfony/web-link" : "4.4.*",
"symfony/yaml" : "4.4.*",
"vich/uploader-bundle" : "~1.12",
"webinarium/datatables-bundle" : "~2.4"
},
"require-dev" : {
"symfony/debug-pack" : "*",
"symfony/maker-bundle" : "^1.0",
"symfony/profiler-pack" : "*",
"symfony/test-pack" : "*",
"symfony/web-server-bundle" : "4.4.*"
},
"config" : {
"preferred-install" : {
"*" : "dist"
},
"sort-packages" : true
},
"autoload" : {
"psr-4" : {
"App\\" : "src/"
}
},
"autoload-dev" : {
"psr-4" : {
"App\\Tests\\" : "tests/"
}
},
"replace" : {
"paragonie/random_compat" : "2.*",
"symfony/polyfill-ctype" : "*",
"symfony/polyfill-iconv" : "*",
"symfony/polyfill-php72" : "*",
"symfony/polyfill-php71" : "*",
"symfony/polyfill-php70" : "*",
"symfony/polyfill-php56" : "*"
},
"conflict" : {
"symfony/symfony" : "*"
},
"extra" : {
"symfony" : {
"allow-contrib" : true,
"require" : "4.4.*"
}
},
"scripts" : {
"app-cs-fixer" : "php-cs-fixer fix --diff"
}
}
Loading

0 comments on commit 9c03cb6

Please sign in to comment.