Added random optimizations
This commit is contained in:
parent
3010bd52f2
commit
4d20e1bfc4
2 changed files with 7 additions and 1 deletions
|
@ -87,6 +87,10 @@ module.exports = function(grunt) {
|
||||||
upgrade: {
|
upgrade: {
|
||||||
command: 'php scripts/upgrade.php',
|
command: 'php scripts/upgrade.php',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
optimizeComposer: {
|
||||||
|
command: 'composer dumpautoload -o'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
copy: {
|
copy: {
|
||||||
|
@ -164,6 +168,6 @@ module.exports = function(grunt) {
|
||||||
fs.unlink('public_html/app.min.js.map');
|
fs.unlink('public_html/app.min.js.map');
|
||||||
fs.unlink('public_html/app.min.css');
|
fs.unlink('public_html/app.min.css');
|
||||||
});
|
});
|
||||||
grunt.registerTask('build', ['clean', 'copy:dist', 'uglify', 'cssmin', 'processhtml']);
|
grunt.registerTask('build', ['clean', 'shell:optimizeComposer', 'copy:dist', 'uglify', 'cssmin', 'processhtml']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,6 +17,8 @@ final class Injector
|
||||||
$builder = new ContainerBuilder();
|
$builder = new ContainerBuilder();
|
||||||
$builder->setDefinitionCache(new ArrayCache());
|
$builder->setDefinitionCache(new ArrayCache());
|
||||||
$builder->addDefinitions($definitionsPath);
|
$builder->addDefinitions($definitionsPath);
|
||||||
|
$builder->useAutowiring(true);
|
||||||
|
$builder->useAnnotations(false);
|
||||||
self::$container = $builder->build();
|
self::$container = $builder->build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue