mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-26 14:15:45 +00:00
21 lines
469 B
PHP
21 lines
469 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'));
|
||
|
|
|
||
|
|
return $instance;
|
||
|
|
}
|
||
|
|
}
|