mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 06:01:35 +01:00
Solved some namespace bugs
This commit is contained in:
parent
d255623f85
commit
a6fac55be4
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user