diff --git a/app/config/security.yml b/app/config/security.yml index dfba55de..e43c3666 100755 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -1,7 +1,6 @@ # To get started with security, check out the documentation: # https://symfony.com/doc/current/security.html security: - encoders: FOS\UserBundle\Model\UserInterface: bcrypt # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded diff --git a/src/AppBundle/Controller/DefaultController.php b/src/AppBundle/Controller/DefaultController.php index f12c1cfd..b6227da6 100755 --- a/src/AppBundle/Controller/DefaultController.php +++ b/src/AppBundle/Controller/DefaultController.php @@ -54,7 +54,10 @@ class DefaultController extends Controller { 0, 1 ); } + if($lastFestival){ + $lastFestival->recalculateChiffreAffaire(); + } $categRepo = $m->getRepository( 'AppBundle:ProductCategory' ); $sellingRepo = $m->getRepository( 'AppBundle:SellRecord' ); $categories = $categRepo->findAll();