File tree 1 file changed +1
-29
lines changed
1 file changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ protected function debugResponse($url)
698
698
$ roles = $ security ->getRoles ();
699
699
700
700
if ($ roles instanceof Data) {
701
- $ roles = $ this -> extractRawRoles ( $ roles );
701
+ $ roles = $ roles -> getValue ( );
702
702
}
703
703
704
704
$ this ->debugSection (
@@ -723,22 +723,6 @@ protected function debugResponse($url)
723
723
}
724
724
}
725
725
726
- /**
727
- * @param Data $data
728
- * @return array
729
- */
730
- private function extractRawRoles (Data $ data ): array
731
- {
732
- if ($ this ->dataRevealsValue ($ data )) {
733
- $ roles = $ data ->getValue ();
734
- } else {
735
- $ raw = $ data ->getRawData ();
736
- $ roles = isset ($ raw [1 ]) ? $ raw [1 ] : [];
737
- }
738
-
739
- return $ roles ;
740
- }
741
-
742
726
/**
743
727
* Returns a list of recognized domain names.
744
728
*
@@ -785,18 +769,6 @@ public function rebootClientKernel()
785
769
}
786
770
}
787
771
788
- /**
789
- * Public API from Data changed from Symfony 3.2 to 3.3.
790
- *
791
- * @param Data $data
792
- *
793
- * @return bool
794
- */
795
- private function dataRevealsValue (Data $ data ): bool
796
- {
797
- return method_exists ($ data , 'getValue ' );
798
- }
799
-
800
772
/**
801
773
* Returns list of the possible kernel classes based on the module configuration
802
774
*
You can’t perform that action at this time.
0 commit comments