Skip to content

Commit

Permalink
Remove unused bundles
Browse files Browse the repository at this point in the history
- add php-cs-fixer
- update
  • Loading branch information
mcfedr committed Mar 19, 2019
1 parent e366c36 commit 868adbb
Show file tree
Hide file tree
Showing 45 changed files with 14,239 additions and 3,362 deletions.
16 changes: 1 addition & 15 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,10 @@ APP_SECRET=e3226663b0fbb107e32af878ed116500
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name
###< doctrine/doctrine-bundle ###

###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###

REDMINE=

AMAZON_S3_BUCKET_NAME=
AMAZON_AWS_KEY=
AMAZON_S3_BASE_URL=
AMAZON_AWS_REGION=
AMAZON_AWS_SECRET_KEY=
AMAZON_AWS_SECRET_KEY=
4 changes: 4 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='s$cretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,13 @@
npm-debug.log
yarn-error.log
###< symfony/webpack-encore-bundle ###

###> friendsofphp/php-cs-fixer ###
/.php_cs
/.php_cs.cache
###< friendsofphp/php-cs-fixer ###

###> phpunit/phpunit ###
/phpunit.xml
/.phpunit.result.cache
###< phpunit/phpunit ###
10 changes: 8 additions & 2 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<?php

$finder = PhpCsFixer\Finder::create()
->in(['src', 'tests', 'web']);
->in(['config', 'public', 'src', 'templates', 'tests']);

return PhpCsFixer\Config::create()
->setRules(['@Symfony' => true, 'trailing_comma_in_multiline_array' => false, 'concat_space' => ['spacing' => 'one'], 'array_syntax' => ['syntax' => 'short'], 'ordered_imports' => true])
->setRules([
'@Symfony' => true,
'trailing_comma_in_multiline_array' => false,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true
])
->setFinder($finder);
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@
"guzzlehttp/guzzle": "^6.3",
"rodneyrehm/plist": "^2.0",
"sensio/framework-extra-bundle": "^5.2",
"stof/doctrine-extensions-bundle": "^1.3",
"symfony/asset": "4.2.*",
"symfony/console": "4.2.*",
"symfony/flex": "^1.1",
"symfony/form": "4.2.*",
"symfony/framework-bundle": "4.2.*",
"symfony/monolog-bundle": "^3.3",
"symfony/orm-pack": "^1.0",
"symfony/security-bundle": "4.2.*",
"symfony/serializer-pack": "^1.0",
"symfony/swiftmailer-bundle": "^3.2",
"symfony/translation": "4.2.*",
"symfony/twig-bundle": "4.2.*",
"symfony/validator": "4.2.*",
Expand Down Expand Up @@ -81,6 +78,8 @@
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.1",
"friendsofphp/php-cs-fixer": "^2.14",
"phpunit/phpunit": "^8.0",
"symfony/dotenv": "4.2.*",
"symfony/maker-bundle": "^1.11",
"symfony/profiler-pack": "^1.0"
Expand Down
Loading

0 comments on commit 868adbb

Please sign in to comment.