Use BaseController

This commit is contained in:
Benoît Burnichon
2015-04-02 13:35:44 +02:00
parent 447029bc6a
commit 5f8dab86fd
9 changed files with 18 additions and 332 deletions

View File

@@ -11,22 +11,15 @@
namespace Alchemy\Phrasea\Controller\Admin;
use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Controller\Controller;
use Alchemy\Phrasea\Metadata\TagProvider;
use Alchemy\Phrasea\Vocabulary\Controller as VocabularyController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
class FieldsController
class FieldsController extends Controller
{
/** @var Application */
private $app;
public function __construct(Application $app)
{
$this->app = $app;
}
public function updateFields(Application $app, Request $request, $sbas_id)
{
$fields = [];