diff --git a/.gitignore b/.gitignore index 649243bf..ed5e730e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,18 +1,31 @@ -web/bundles/ -web/packages*.json -web/providers-*.json -web/p/ -app/config/parameters.yml -app/bootstrap* -app/cache/* -app/logs/* -bin/ -build/ -vendor/ -/.settings -/.buildpath -/.project -/.idea -composer.phar -/nbproject -.php_cs.cache +/web/bundles +/web/css +/web/js +/web/composer +/web/images +/web/uploads/users/* +/web/media/cache +/web/build.js +/var/password.dat +/var/password.json +/password.json +behat.yml +/.web-server-pid +/app/config/parameters.yml +/build/ +.idea +/phpunit.xml +/var/* +/var/cache/* +!var/cache/.gitkeep +!var/hook/.gitkeep +!var/hook/* +/var/logs/* +!var/logs/.gitkeep +!/var/sessions +/var/sessions/* +!var/sessions/.gitkeep +!var/SymfonyRequirements.php +/vendor/ +/web/bundles/ +/var/bin/ diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 00000000..249cf8f0 --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/zipball/ diff --git a/app/AppKernel.php b/app/AppKernel.php index a0e3351c..4645f398 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -17,12 +17,9 @@ public function registerBundles() new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new FOS\UserBundle\FOSUserBundle(), - new HWI\Bundle\OAuthBundle\HWIOAuthBundle(), new Snc\RedisBundle\SncRedisBundle(), new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(), - new Nelmio\SecurityBundle\NelmioSecurityBundle(), new Knp\Bundle\MenuBundle\KnpMenuBundle(), - new Nelmio\CorsBundle\NelmioCorsBundle(), new Packagist\WebBundle\PackagistWebBundle(), ); @@ -34,8 +31,29 @@ public function registerBundles() return $bundles; } + public function getRootDir() + { + return __DIR__; + } + + public function getCacheDir() + { + return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); + } + + public function getLogDir() + { + return dirname(__DIR__).'/var/logs'; + } + public function registerContainerConfiguration(LoaderInterface $loader) { - $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); + $loader->load(function (\Symfony\Component\DependencyInjection\ContainerBuilder $container) { + $container->setParameter('container.autowiring.strict_mode', true); + $container->setParameter('container.dumper.inline_class_loader', true); + + $container->addObjectResource($this); + }); + $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); } } diff --git a/app/Resources/FOSUserBundle/views/Profile/edit_content.html.twig b/app/Resources/FOSUserBundle/views/Profile/edit_content.html.twig index 0dc16820..0ee2f394 100644 --- a/app/Resources/FOSUserBundle/views/Profile/edit_content.html.twig +++ b/app/Resources/FOSUserBundle/views/Profile/edit_content.html.twig @@ -1,4 +1,4 @@ -