@@ -91,9 +91,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
91
91
// Create ReflectionMethod
92
92
$ reflectedMethod = new ReflectionMethod ($ controllerObject , $ action );
93
93
$ attrFlags = ReflectionAttribute::IS_INSTANCEOF ;
94
- // Check if Route annotation exists
94
+ // Check if Route attribute exists
95
95
if ($ reflectedMethod ->getAttributes (Route::class, $ attrFlags )) {
96
- // Check if Security or IsGranted annotation exists, if not raise error
96
+ // Check if Security or IsGranted attribute exists, if not raise error
97
97
if (!$ reflectedMethod ->getAttributes (Security::class, $ attrFlags ) &&
98
98
!$ reflectedMethod ->getAttributes (IsGranted::class, $ attrFlags ) &&
99
99
(!$ allowClass || !(new ReflectionClass ($ controllerObject ))->getAttributes (IsGranted::class, $ attrFlags ))) {
@@ -110,7 +110,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
110
110
if (!empty ($ noSecurity )) {
111
111
$ error = [];
112
112
// Concatenate non-pre-authorized methods
113
- $ error [] = 'The following methods do not contain a Security or IsGranted annotation : ' ;
113
+ $ error [] = 'The following methods do not contain a Security or IsGranted attribute : ' ;
114
114
$ error = [...$ error , ...$ noSecurity ];
115
115
116
116
// Feedback error
@@ -120,7 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
120
120
}
121
121
122
122
// No errors occurred!
123
- $ io ->success ('All methods contain a Security or IsGranted annotation ! ' );
123
+ $ io ->success ('All methods contain a Security or IsGranted attribute ! ' );
124
124
125
125
if ($ output ->isVerbose ()) {
126
126
$ output ->writeln ("Checked controllers: " );
0 commit comments