mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 09:19:08 +00:00 
			
		
		
		
	Solved some namespace bugs
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| <?php | ||||
|  | ||||
| namespace Creator\Factory; | ||||
| namespace App\Creator\Factory; | ||||
|  | ||||
| use App\Entity\SourceInterface; | ||||
|  | ||||
|   | ||||
| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| namespace App\Creator\Factory\Form\Source; | ||||
|  | ||||
| use Creator\Factory\AbstractSourceFactory; | ||||
| use App\Creator\Factory\AbstractSourceFactory; | ||||
|  | ||||
| /** | ||||
|  * @author kevinfrantz | ||||
|   | ||||
| @@ -15,18 +15,19 @@ use App\Structur\Facade\Security\Source\interfaces\SourceFacadeInterface; | ||||
| abstract class AbstractSourceFacade implements SourceFacadeInterface | ||||
| { | ||||
|     /** | ||||
|      * Propably it woul be better to solve this over the constructor | ||||
|      * @var User | ||||
|      */ | ||||
|     protected static $user; | ||||
|     protected static $facadeUser; | ||||
|  | ||||
|     /** | ||||
|      * @var SourceInterface | ||||
|      */ | ||||
|     protected $source; | ||||
|  | ||||
|     public static function setUser(User $user): void | ||||
|     public static function setFacadeUser(User $facadeUser): void | ||||
|     { | ||||
|         self::$user = $user; | ||||
|         self::$facadeUser = $facadeUser; | ||||
|     } | ||||
|  | ||||
|     public function __construct(SourceInterface $source) | ||||
|   | ||||
| @@ -41,5 +41,11 @@ class UserSourceFacade extends AbstractSourceFacade implements UserSourceInterfa | ||||
|  | ||||
|     public function getUser(): User | ||||
|     { | ||||
|         //FILL | ||||
|     } | ||||
|     public function setUser(User $user): void | ||||
|     { | ||||
|         //FILL | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user