- Some minor fixes in controllertrait (ignore attribute)
This commit is contained in:
		
							parent
							
								
									4484dc8985
								
							
						
					
					
						commit
						3320dc47c1
					
				| @ -11,21 +11,25 @@ use Notes\Security\Attribute\Security; | ||||
| use %NAMESPACE%\{ Entity, Lib, Form }; | ||||
| 
 | ||||
| use Mcnd\Event\EventManager; | ||||
| use Ulmus\User\Entity\UserInterface; | ||||
| use Notes\Attribute\Ignore;use Ulmus\User\Entity\UserInterface; | ||||
| 
 | ||||
| #[Security(locked: false)]
 | ||||
| #[Route(method: ['GET', 'POST', ])]
 | ||||
| trait ControllerTrait { | ||||
|     use \Lean\ControllerTrait; | ||||
| 
 | ||||
|     #[Ignore]
 | ||||
|     public ? UserInterface $user; | ||||
| 
 | ||||
|     #[Ignore]
 | ||||
|     protected EventManager $eventManager; | ||||
| 
 | ||||
|     #[Ignore]
 | ||||
|     public function __construct(Picea $picea, Session $session, UserInterface $user, \Notes\Breadcrumb\Breadcrumb $breadcrumb, EventManager $eventManager) { | ||||
|         $this->initializeController($picea, $session, $user, $breadcrumb, $eventManager); | ||||
|     } | ||||
| 
 | ||||
|     #[Ignore]
 | ||||
|     public function initializeController(Picea $picea, Session $session, UserInterface $user, \Notes\Breadcrumb\Breadcrumb $breadcrumb, EventManager $eventManager) { | ||||
|         $this->picea = $picea; | ||||
|         $this->session = $session; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user