Solved some namespace bugs

This commit is contained in:
Kevin Frantz 2018-09-24 17:12:48 +02:00
parent d255623f85
commit a6fac55be4
4 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace Creator\Factory;
namespace App\Creator\Factory;
use App\Entity\SourceInterface;

View File

@ -2,7 +2,7 @@
namespace App\Creator\Factory\Form\Source;
use Creator\Factory\AbstractSourceFactory;
use App\Creator\Factory\AbstractSourceFactory;
/**
* @author kevinfrantz

View File

@ -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)

View File

@ -41,5 +41,11 @@ class UserSourceFacade extends AbstractSourceFacade implements UserSourceInterfa
public function getUser(): User
{
//FILL
}
public function setUser(User $user): void
{
//FILL
}
}