mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 10:03:49 +00:00
fix deprecations: use fqcn
This commit is contained in:
@@ -63,7 +63,7 @@ class ScopeController extends Controller
|
||||
*/
|
||||
private function createCreateForm(Scope $scope)
|
||||
{
|
||||
$form = $this->createForm(new ScopeType(), $scope, array(
|
||||
$form = $this->createForm(ScopeType::class, $scope, array(
|
||||
'action' => $this->generateUrl('admin_scope_create'),
|
||||
'method' => 'POST',
|
||||
));
|
||||
@@ -80,7 +80,7 @@ class ScopeController extends Controller
|
||||
public function newAction()
|
||||
{
|
||||
$scope = new Scope();
|
||||
$form = $this->createCreateForm($scope);
|
||||
$form = $this->createCreateForm($scope);
|
||||
|
||||
return $this->render('ChillMainBundle:Scope:new.html.twig', array(
|
||||
'entity' => $scope,
|
||||
@@ -138,12 +138,12 @@ class ScopeController extends Controller
|
||||
*/
|
||||
private function createEditForm(Scope $scope)
|
||||
{
|
||||
$form = $this->createForm(new ScopeType(), $scope, array(
|
||||
$form = $this->createForm(ScopeType::class, $scope, array(
|
||||
'action' => $this->generateUrl('admin_scope_update', array('id' => $scope->getId())),
|
||||
'method' => 'PUT',
|
||||
));
|
||||
|
||||
$form->add('submit', 'submit', array('label' => 'Update'));
|
||||
$form->add('submit', SubmitType::class, array('label' => 'Update'));
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
Reference in New Issue
Block a user