mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-25 21:55:54 +00:00
22 lines
565 B
PHP
22 lines
565 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use App\Entity\Instance;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
|
class InstanceController extends AbstractController
|
|
{
|
|
public function __invoke(): Instance
|
|
{
|
|
$instance = new Instance();
|
|
|
|
$instance
|
|
->setLimitedFeatures($this->getParameter('limited_features') ?? false)
|
|
->setOauthEnabled($this->getParameter('oauth_enabled') ?? false)
|
|
->setRegisterEnabled($this->getParameter('registration_enabled') ?? false);
|
|
|
|
return $instance;
|
|
}
|
|
}
|