Override bundle class silex authentification php -


here began silex , not understand how override class.

i use plugin manage authentication. works, change checkpreauth () method verify account user before authentication without change yhe bundle code. made steps below:

i created class userdao call plugin extends native class.

but doesn't work because make simple die('foo !') in new method in userdao apparently method not taken account because die('foo !') doesn't appear :-( there me :-)

class userdao:

use microcms\domain\user;  use microcms\pdo\pdocontroller pdocontroller;  use pdo;  class userdao extends baseuserchecker implements userproviderinterface {      public function __construct() {       }     /**      * {@inheritdoc}      */     public function checkpreauth(userinterface $user){     die('je rentre dans cette fonction !');     }      public function checkpostauth(userinterface $user){      }  } 

thanks in advance


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -