- Added admin page to upload and manage media. - Fixed /setup route. - Updated dockerfiles to support admin media. - Improved deploy docs.
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Controller;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Entity\ConfigVariable;
|
||||
use App\Enum\ConfigSectionType;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
@@ -53,7 +54,7 @@ class SecurityController extends AbstractController
|
||||
$var_setup = new ConfigVariable();
|
||||
$var_setup->setKey("SETUP_STATUS");
|
||||
$var_setup->setValue("1");
|
||||
$var_setup->setSection("SYSTEM");
|
||||
$var_setup->setSection(ConfigSectionType::Internal);
|
||||
$entityManager->persist($var_setup);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user