-
Notifications
You must be signed in to change notification settings - Fork 0
First commit #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
First commit #1
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # 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. | ||
| # | ||
| # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED 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.html#use-environment-variables-for-infrastructure-configuration | ||
|
|
||
| ###> symfony/framework-bundle ### | ||
| APP_ENV=dev | ||
| APP_SECRET=08d03a6523b953e4ef1fa5a61f9c899b | ||
| ###< symfony/framework-bundle ### | ||
|
|
||
| ###> symfony/mailer ### | ||
| # MAILER_DSN=smtp://localhost | ||
| ###< symfony/mailer ### | ||
|
|
||
| ###> doctrine/doctrine-bundle ### | ||
| # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url | ||
| # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml | ||
| # | ||
| # DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" | ||
| # DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7" | ||
| DATABASE_URL="postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=13&charset=utf8" | ||
| ###< doctrine/doctrine-bundle ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # define your env variables for the test env here | ||
| KERNEL_CLASS='App\Kernel' | ||
| APP_SECRET='$ecretf0rt3st' | ||
| SYMFONY_DEPRECATIONS_HELPER=999999 | ||
| PANTHER_APP_ENV=panther | ||
| PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,15 @@ | ||
| composer.phar | ||
| ###> symfony/framework-bundle ### | ||
| /.env.local | ||
| /.env.local.php | ||
| /.env.*.local | ||
| /config/secrets/prod/prod.decrypt.private.php | ||
| /public/bundles/ | ||
| /var/ | ||
| /vendor/ | ||
| ###< symfony/framework-bundle ### | ||
|
|
||
| # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control | ||
| # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
| # composer.lock | ||
| ###> symfony/phpunit-bridge ### | ||
| .phpunit | ||
| .phpunit.result.cache | ||
| /phpunit.xml | ||
| ###< symfony/phpunit-bridge ### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| #!/usr/bin/env php | ||
| <?php | ||
|
|
||
| use App\Kernel; | ||
| use Symfony\Bundle\FrameworkBundle\Console\Application; | ||
| use Symfony\Component\Console\Input\ArgvInput; | ||
| use Symfony\Component\Dotenv\Dotenv; | ||
| use Symfony\Component\ErrorHandler\Debug; | ||
|
|
||
| if (!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) || !class_exists(Dotenv::class)) { | ||
| throw new LogicException('You need to add "symfony/framework-bundle" and "symfony/dotenv" as Composer dependencies.'); | ||
| } | ||
|
|
||
| $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'); | ||
| } | ||
|
|
||
| (new Dotenv())->bootEnv(dirname(__DIR__).'/.env'); | ||
|
|
||
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,98 @@ | ||
| { | ||
| "type": "project", | ||
| "license": "proprietary", | ||
| "minimum-stability": "dev", | ||
| "prefer-stable": true, | ||
| "require": { | ||
| "php": ">=7.2.5", | ||
| "ext-ctype": "*", | ||
| "ext-iconv": "*", | ||
| "composer/package-versions-deprecated": "1.11.99.1", | ||
| "doctrine/annotations": "^1.0", | ||
| "doctrine/doctrine-bundle": "^2.3", | ||
| "doctrine/doctrine-migrations-bundle": "^3.0", | ||
| "doctrine/orm": "^2.8", | ||
| "phpdocumentor/reflection-docblock": "^5.2", | ||
| "sensio/framework-extra-bundle": "^5.1", | ||
| "symfony/asset": "5.2.*", | ||
| "symfony/console": "5.2.*", | ||
| "symfony/dotenv": "5.2.*", | ||
| "symfony/expression-language": "5.2.*", | ||
| "symfony/flex": "^1.3.1", | ||
| "symfony/form": "5.2.*", | ||
| "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.*", | ||
| "symfony/process": "5.2.*", | ||
| "symfony/property-access": "5.2.*", | ||
| "symfony/property-info": "5.2.*", | ||
| "symfony/proxy-manager-bridge": "5.2.*", | ||
| "symfony/security-bundle": "5.2.*", | ||
| "symfony/serializer": "5.2.*", | ||
| "symfony/string": "5.2.*", | ||
| "symfony/translation": "5.2.*", | ||
| "symfony/twig-bundle": "^5.2", | ||
| "symfony/validator": "5.2.*", | ||
| "symfony/web-link": "5.2.*", | ||
| "symfony/yaml": "5.2.*", | ||
| "twig/extra-bundle": "^2.12|^3.0", | ||
| "twig/twig": "^2.12|^3.0" | ||
| }, | ||
| "require-dev": { | ||
| "symfony/browser-kit": "^5.2", | ||
| "symfony/css-selector": "^5.2", | ||
| "symfony/debug-bundle": "^5.2", | ||
| "symfony/maker-bundle": "^1.0", | ||
| "symfony/phpunit-bridge": "^5.2", | ||
| "symfony/stopwatch": "^5.2", | ||
| "symfony/var-dumper": "^5.2", | ||
| "symfony/web-profiler-bundle": "^5.2" | ||
| }, | ||
| "config": { | ||
| "optimize-autoloader": true, | ||
| "preferred-install": { | ||
| "*": "dist" | ||
| }, | ||
| "sort-packages": true | ||
| }, | ||
| "autoload": { | ||
| "psr-4": { | ||
| "App\\": "src/" | ||
| } | ||
| }, | ||
| "autoload-dev": { | ||
| "psr-4": { | ||
| "App\\Tests\\": "tests/" | ||
| } | ||
| }, | ||
| "replace": { | ||
| "symfony/polyfill-ctype": "*", | ||
| "symfony/polyfill-iconv": "*", | ||
| "symfony/polyfill-php72": "*" | ||
| }, | ||
| "scripts": { | ||
| "auto-scripts": { | ||
| "cache:clear": "symfony-cmd", | ||
| "assets:install %PUBLIC_DIR%": "symfony-cmd" | ||
| }, | ||
| "post-install-cmd": [ | ||
| "@auto-scripts" | ||
| ], | ||
| "post-update-cmd": [ | ||
| "@auto-scripts" | ||
| ] | ||
| }, | ||
| "conflict": { | ||
| "symfony/symfony": "*" | ||
| }, | ||
| "extra": { | ||
| "symfony": { | ||
| "allow-contrib": false, | ||
| "require": "5.2.*" | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.