Commit 3f24b1f9 authored by dj3c1t's avatar dj3c1t

modifs pour Symfony 3

parent fcdcc8ed
......@@ -3,7 +3,7 @@
namespace Dj3c1t\AppBundle\Entity;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Doctrine\ORM\EntityRepository;
......@@ -16,7 +16,7 @@ use Doctrine\ORM\NoResultException;
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class UserRepository extends EntityRepository implements UserProviderInterface {
class UserRepository extends EntityRepository implements UserLoaderInterface {
public function loadUserByUsername($username) {
$q = $this
......
......@@ -58,11 +58,11 @@ class InstallManager {
public function checkWriteAccess() {
$notWritable = array();
if(!is_writable($this->rootDir."/app/cache")) {
$notWritable[] = "app/cache";
if(!is_writable($this->rootDir."/var/cache")) {
$notWritable[] = "var/cache";
}
if(!is_writable($this->rootDir."/app/logs")) {
$notWritable[] = "app/logs";
if(!is_writable($this->rootDir."/var/logs")) {
$notWritable[] = "var/logs";
}
if($this->isInstallRequest() && !is_writable($this->rootDir."/app/config/parameters.yml")) {
$notWritable[] = "app/config/parameters.yml";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment