Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01b183a

Browse files
committed
Add annotation
1 parentf1cb9fa commit01b183a

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php‎

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,33 @@
4646
*/
4747
trait ControllerTrait
4848
{
49+
/**
50+
* @required
51+
*/
4952
protectedfunctiongetRouter():RouterInterface
5053
{
5154
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', RouterInterface::class));
5255
}
5356

57+
/**
58+
* @required
59+
*/
5460
protectedfunctiongetRequestStack():RequestStack
5561
{
5662
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', RequestStack::class));
5763
}
5864

65+
/**
66+
* @required
67+
*/
5968
protectedfunctiongetHttpKernel():HttpKernelInterface
6069
{
6170
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', HttpKernelInterface::class));
6271
}
6372

73+
/**
74+
* @required
75+
*/
6476
protectedfunctiongetSerializer():SerializerInterface
6577
{
6678
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', SerializerInterface::class));
@@ -70,38 +82,56 @@ protected function getSerializer(): SerializerInterface
7082
* An instance of the Session implementation (and not the interface) is returned because getFlashBag is not part of
7183
* the interface.
7284
*
73-
* @return Session
85+
* @required
7486
*/
7587
protectedfunctiongetSession():Session
7688
{
7789
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', Session::class));
7890
}
7991

92+
/**
93+
* @required
94+
*/
8095
protectedfunctiongetAuthorizationChecker():AuthorizationCheckerInterface
8196
{
8297
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', AuthorizationCheckerInterface::class));
8398
}
8499

100+
/**
101+
* @required
102+
*/
85103
protectedfunctiongetTwig():\Twig_Environment
86104
{
87105
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', \Twig_Environment::class));
88106
}
89107

108+
/**
109+
* @required
110+
*/
90111
protectedfunctiongetDoctrine():ManagerRegistry
91112
{
92113
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', ManagerRegistry::class));
93114
}
94115

116+
/**
117+
* @required
118+
*/
95119
protectedfunctiongetFormFactory():FormFactoryInterface
96120
{
97121
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', FormFactoryInterface::class));
98122
}
99123

124+
/**
125+
* @required
126+
*/
100127
protectedfunctiongetTokenStorage():TokenStorageInterface
101128
{
102129
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', TokenStorageInterface::class));
103130
}
104131

132+
/**
133+
* @required
134+
*/
105135
protectedfunctiongetCsrfTokenManager():CsrfTokenManagerInterface
106136
{
107137
thrownew \LogicException(sprintf('An instance of "%s" must be provided.', CsrfTokenManagerInterface::class));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp