You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
791 B
32 lines
791 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
namespace Chamilo\CoreBundle\Controller;
|
|
|
|
use Chamilo\CoreBundle\ToolChain;
|
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
/**
|
|
* @Route("/tool")
|
|
*/
|
|
class ToolController extends AbstractController
|
|
{
|
|
/**
|
|
* Updates the table tool and resource_type with the content of tools.yml.
|
|
*
|
|
* @Security("is_granted('ROLE_ADMIN')")
|
|
* @Route("/update", methods={"GET"})
|
|
*/
|
|
public function profileAction(ToolChain $toolChain)
|
|
{
|
|
$toolChain->createTools();
|
|
|
|
return new Response('Updated');
|
|
}
|
|
}
|
|
|