@@ -23,72 +23,72 @@ public function __construct(array $namespaces = null)
23
23
24
24
public function getCommandNamespace (): string
25
25
{
26
- return $ this ->trim ($ this ->namespaces ['command_namespace ' ] ?? 'Command \\' );
26
+ return $ this ->trim ($ this ->namespaces ['command ' ] ?? 'Command \\' );
27
27
}
28
28
29
29
public function getControllerNamespace (): string
30
30
{
31
- return $ this ->trim ($ this ->namespaces ['controller_namespace ' ] ?? 'Controller \\' );
31
+ return $ this ->trim ($ this ->namespaces ['controller ' ] ?? 'Controller \\' );
32
32
}
33
33
34
34
public function getEntityNamespace (): string
35
35
{
36
- return $ this ->trim ($ this ->namespaces ['entity_namespace ' ] ?? 'Entity \\' );
36
+ return $ this ->trim ($ this ->namespaces ['entity ' ] ?? 'Entity \\' );
37
37
}
38
38
39
39
public function getFixturesNamespace (): string
40
40
{
41
- return $ this ->trim ($ this ->namespaces ['fixtures_namespace ' ] ?? 'DataFixtures \\' );
41
+ return $ this ->trim ($ this ->namespaces ['fixtures ' ] ?? 'DataFixtures \\' );
42
42
}
43
43
44
44
public function getFormNamespace (): string
45
45
{
46
- return $ this ->trim ($ this ->namespaces ['form_namespace ' ] ?? 'Form \\' );
46
+ return $ this ->trim ($ this ->namespaces ['form ' ] ?? 'Form \\' );
47
47
}
48
48
49
49
public function getFunctionalTestNamespace (): string
50
50
{
51
- return $ this ->trim ($ this ->namespaces ['functional_test_namespace ' ] ?? 'Tests \\' );
51
+ return $ this ->trim ($ this ->namespaces ['functional_test ' ] ?? 'Tests \\' );
52
52
}
53
53
54
54
public function getRepositoryNamespace (): string
55
55
{
56
- return $ this ->trim ($ this ->namespaces ['repository_namespace ' ] ?? 'Repository \\' );
56
+ return $ this ->trim ($ this ->namespaces ['repository ' ] ?? 'Repository \\' );
57
57
}
58
58
59
59
public function getRootNamespace (): string
60
60
{
61
- return $ this ->trim ($ this ->namespaces ['root_namespace ' ] ?? 'App \\' );
61
+ return $ this ->trim ($ this ->namespaces ['root ' ] ?? 'App \\' );
62
62
}
63
63
64
64
public function getSecurityNamespace (): string
65
65
{
66
- return $ this ->trim ($ this ->namespaces ['security_namespace ' ] ?? 'Security \\' );
66
+ return $ this ->trim ($ this ->namespaces ['security ' ] ?? 'Security \\' );
67
67
}
68
68
69
69
public function getSerializerNamespace (): string
70
70
{
71
- return $ this ->trim ($ this ->namespaces ['serializer_namespace ' ] ?? 'Serializer \\' );
71
+ return $ this ->trim ($ this ->namespaces ['serializer ' ] ?? 'Serializer \\' );
72
72
}
73
73
74
74
public function getSubscriberNamespace (): string
75
75
{
76
- return $ this ->trim ($ this ->namespaces ['subscriber_namespace ' ] ?? 'EventSubscriber \\' );
76
+ return $ this ->trim ($ this ->namespaces ['subscriber ' ] ?? 'EventSubscriber \\' );
77
77
}
78
78
79
79
public function getTwigNamespace (): string
80
80
{
81
- return $ this ->trim ($ this ->namespaces ['twig_namespace ' ] ?? 'Twig \\' );
81
+ return $ this ->trim ($ this ->namespaces ['twig ' ] ?? 'Twig \\' );
82
82
}
83
83
84
84
public function getUnitTestNamespace (): string
85
85
{
86
- return $ this ->trim ($ this ->namespaces ['unit_test_namespace ' ] ?? 'Tests \\' );
86
+ return $ this ->trim ($ this ->namespaces ['unit_test ' ] ?? 'Tests \\' );
87
87
}
88
88
89
89
public function getValidatorNamespace (): string
90
90
{
91
- return $ this ->trim ($ this ->namespaces ['validator_namespace ' ] ?? 'Validator \\' );
91
+ return $ this ->trim ($ this ->namespaces ['validator ' ] ?? 'Validator \\' );
92
92
}
93
93
94
94
private function trim (string $ namespace ): string
0 commit comments