File tree Expand file tree Collapse file tree 5 files changed +30
-0
lines changed
Expand file tree Collapse file tree 5 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ public function onKernelRequest(RequestEvent $event)
4848 }
4949 }
5050
51+ /**
52+ * @return string[]
53+ */
5154 public static function getSubscribedEvents ()
5255 {
5356 return array (
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ public function onKernelRequest(RequestEvent $event)
2929 $ this ->translatableListener ->setTranslatableLocale ($ event ->getRequest ()->getLocale ());
3030 }
3131
32+ /**
33+ * @return string[]
34+ */
3235 public static function getSubscribedEvents ()
3336 {
3437 return array (
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ public function onKernelRequest(RequestEvent $event)
4848 }
4949 }
5050
51+ /**
52+ * @return string[]
53+ */
5154 public static function getSubscribedEvents ()
5255 {
5356 return array (
Original file line number Diff line number Diff line change 77
88class MimeTypeGuesserAdapter implements MimeTypeGuesserInterface
99{
10+ /**
11+ * @param string $filePath
12+ * @return ?string
13+ */
1014 public function guess ($ filePath )
1115 {
1216 return MimeTypes::getDefault ()->guessMimeType ($ filePath );
Original file line number Diff line number Diff line change @@ -14,33 +14,50 @@ public function __construct(UploadedFile $uploadedFile)
1414 $ this ->uploadedFile = $ uploadedFile ;
1515 }
1616
17+ /**
18+ * @return ?string
19+ */
1720 public function getTmpName ()
1821 {
1922 return $ this ->uploadedFile ->getPathname ();
2023 }
2124
25+ /**
26+ * @return ?string
27+ */
2228 public function getName ()
2329 {
2430 return $ this ->uploadedFile ->getClientOriginalName ();
2531 }
2632
33+ /**
34+ * @return ?string
35+ */
2736 public function getSize ()
2837 {
2938 return $ this ->uploadedFile ->getSize ();
3039 }
3140
41+ /**
42+ * @return ?string
43+ */
3244 public function getType ()
3345 {
3446 return $ this ->uploadedFile ->getMimeType ();
3547 }
3648
49+ /**
50+ * @return int
51+ */
3752 public function getError ()
3853 {
3954 return $ this ->uploadedFile ->getError ();
4055 }
4156
4257 /**
4358 * {@inheritDoc}
59+ *
60+ * @return bool
4461 */
4562 public function isUploadedFile ()
4663 {
You can’t perform that action at this time.
0 commit comments