Merge branch 'Xbird/FixDocker' into 'main'
Fix commands + return composer install in docker build See merge request gamexperience/vision!45
This commit is contained in:
@@ -23,7 +23,8 @@ RUN chown -R www-data:www-data /var/www
|
||||
|
||||
USER www-data
|
||||
|
||||
RUN cd /var/www
|
||||
RUN cd /var/www && \
|
||||
composer install
|
||||
WORKDIR /var/www/
|
||||
|
||||
ENTRYPOINT ["bash", "./docker/docker.sh"]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
composer install
|
||||
php bin/console doctrine:database:create
|
||||
php bin/console d:m:m --no-interaction
|
||||
php bin/console cache:clear
|
||||
|
||||
@@ -44,7 +44,7 @@ class AddRankCommand extends Command
|
||||
/**
|
||||
* @var GroupRepository $groupRepository
|
||||
*/
|
||||
$groupRepository = $this->entityManager->getRepository("App:Group");
|
||||
$groupRepository = $this->entityManager->getRepository(Group::class);
|
||||
|
||||
if ($groupid && null === $groupRepository->find($groupid)) {
|
||||
$groupid = '';
|
||||
@@ -64,7 +64,7 @@ class AddRankCommand extends Command
|
||||
);
|
||||
}
|
||||
global $groupRepository;
|
||||
if (null === $this->entityManager->getRepository("App:Group")->find($answer)) {
|
||||
if (null === $this->entityManager->getRepository(Group::class)->find($answer)) {
|
||||
throw new \RuntimeException(
|
||||
'No group find for this id'
|
||||
);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Command;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Entity\Group;
|
||||
use Doctrine\ORM\Query;
|
||||
use App\Repository\GroupRepository;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
@@ -103,7 +104,7 @@ class AddUserCommand extends Command
|
||||
/**
|
||||
* @var GroupRepository $groupRepository
|
||||
*/
|
||||
$groupRepository = $this->entityManager->getRepository("App:Group");
|
||||
$groupRepository = $this->entityManager->getRepository(Group::class);
|
||||
|
||||
if ($groupid && null === $groupRepository->find($groupid)) {
|
||||
$groupid = '';
|
||||
@@ -123,7 +124,7 @@ class AddUserCommand extends Command
|
||||
);
|
||||
}
|
||||
global $groupRepository;
|
||||
if (null === $this->entityManager->getRepository("App:Group")->find($answer)) {
|
||||
if (null === $this->entityManager->getRepository(Group::class)->find($answer)) {
|
||||
throw new \RuntimeException(
|
||||
'No group find for this id'
|
||||
);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"version": "0.2.11"
|
||||
"version": "0.2.12"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user