Skip to content

Commit

Permalink
remove unused packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jjsty1e committed May 23, 2018
1 parent f330553 commit 2ae2f69
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 976 deletions.
7 changes: 0 additions & 7 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ public function registerBundles()
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new AppBundle\AppBundle(),
new Snc\RedisBundle\SncRedisBundle()
);

if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}

Expand Down
16 changes: 0 additions & 16 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ framework:
strict_requirements: ~
form: ~
csrf_protection: ~
validation: { enable_annotations: true }
#serializer: { enable_annotations: true }
templating:
engines: ['twig']
default_locale: '%locale%'
trusted_hosts: ~
trusted_proxies: ~
Expand All @@ -30,11 +27,6 @@ framework:
fragments: ~
http_method_override: true

# Twig Configuration
twig:
debug: '%kernel.debug%'
strict_variables: '%kernel.debug%'

# Doctrine Configuration
doctrine:
dbal:
Expand All @@ -57,14 +49,6 @@ doctrine:
naming_strategy: doctrine.orm.naming_strategy.underscore
auto_mapping: true

# Swiftmailer Configuration
swiftmailer:
transport: smtp
host: 127.0.0.1
username: null
password: null
spool: { type: memory }

snc_redis:
clients:
cache:
Expand Down
34 changes: 1 addition & 33 deletions app/config/config_dev.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,2 @@
imports:
- { resource: config.yml }

framework:
router:
resource: '%kernel.root_dir%/config/routing_dev.yml'
strict_requirements: true
profiler: { only_exceptions: false }

web_profiler:
toolbar: true
intercept_redirects: false

monolog:
handlers:
main:
type: stream
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
channels: ['!event']
console:
type: console
channels: ['!event', '!doctrine']
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info

#swiftmailer:
# delivery_addresses: ['[email protected]']
- { resource: config.yml }
25 changes: 0 additions & 25 deletions app/config/config_prod.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,2 @@
imports:
- { resource: config.yml }

#framework:
# validation:
# cache: validator.mapping.cache.doctrine.apc
# serializer:
# cache: serializer.mapping.cache.apc

#doctrine:
# orm:
# metadata_cache_driver: apc
# result_cache_driver: apc
# query_cache_driver: apc

monolog:
handlers:
main:
type: fingers_crossed
action_level: error
handler: nested
nested:
type: stream
path: '%kernel.logs_dir%/%kernel.environment%.log'
level: debug
console:
type: console
21 changes: 2 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
"app/AppCache.php"
]
},
"autoload-dev": {
"files": [
"vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php"
]
},
"require": {
"php": ">=5.6",
"doctrine/doctrine-bundle": "~1.4",
Expand All @@ -24,13 +19,8 @@
"incenteev/composer-parameter-handler": "~2.0",
"jaeger/querylist": "^3.2",
"predis/predis": "v1.1.1",
"sensio/distribution-bundle": "~4.0",
"sensio/framework-extra-bundle": "^3.0.2",
"snc/redis-bundle": "^2.0",
"symfony/monolog-bundle": "^3.0.2",
"symfony/swiftmailer-bundle": "~2.3,>=2.3.10",
"symfony/symfony": "2.8.*",
"twig/twig": "^1.0||^2.0"
"symfony/symfony": "2.8.*"
},
"require-dev": {
"sensio/generator-bundle": "~3.0",
Expand All @@ -39,12 +29,7 @@
},
"scripts": {
"symfony-scripts": [
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
"Incenteev\\ParameterHandler\\ScriptHandler::buildParameters"
],
"post-install-cmd": [
"@symfony-scripts"
Expand All @@ -59,8 +44,6 @@
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
Expand Down
Loading

0 comments on commit 2ae2f69

Please sign in to comment.