Skip to content

Commit 069ebd3

Browse files
committed
FIX FormType name generation
1 parent baf6c49 commit 069ebd3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Builder/Admin/EditBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function getYamlKey()
2828
public function getFormType()
2929
{
3030
return sprintf(
31-
'%s\\%s\\Form\Type\\%s\\EditType',
32-
$this->getVariable('namespace_prefix'),
31+
'%s%s\\Form\Type\\%s\\EditType',
32+
$this->getVariable('namespace_prefix') ? $this->getVariable('namespace_prefix') . '\\' : '',
3333
$this->getVariable('bundle_name'),
3434
$this->getBaseGeneratorName()
3535
);

Builder/Admin/ListBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function getYamlKey()
4646
public function getFormType()
4747
{
4848
return sprintf(
49-
'%s\\%s\\Form\Type\\%s\\FiltersType',
50-
$this->getVariable('namespace_prefix'),
49+
'%s%s\\Form\Type\\%s\\FiltersType',
50+
$this->getVariable('namespace_prefix') ? $this->getVariable('namespace_prefix') . '\\' : '',
5151
$this->getVariable('bundle_name'),
5252
$this->getBaseGeneratorName()
5353
);

Builder/Admin/NewBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function getYamlKey()
2828
public function getFormType()
2929
{
3030
return sprintf(
31-
'%s\\%s\\Form\Type\\%s\\NewType',
32-
$this->getVariable('namespace_prefix'),
31+
'%s%s\\Form\Type\\%s\\NewType',
32+
$this->getVariable('namespace_prefix') ? $this->getVariable('namespace_prefix') . '\\' : '',
3333
$this->getVariable('bundle_name'),
3434
$this->getBaseGeneratorName()
3535
);

0 commit comments

Comments
 (0)