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)
48
48
}
49
49
}
50
50
51
+ /**
52
+ * @return string[]
53
+ */
51
54
public static function getSubscribedEvents ()
52
55
{
53
56
return array (
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ public function onKernelRequest(RequestEvent $event)
29
29
$ this ->translatableListener ->setTranslatableLocale ($ event ->getRequest ()->getLocale ());
30
30
}
31
31
32
+ /**
33
+ * @return string[]
34
+ */
32
35
public static function getSubscribedEvents ()
33
36
{
34
37
return array (
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ public function onKernelRequest(RequestEvent $event)
48
48
}
49
49
}
50
50
51
+ /**
52
+ * @return string[]
53
+ */
51
54
public static function getSubscribedEvents ()
52
55
{
53
56
return array (
Original file line number Diff line number Diff line change 7
7
8
8
class MimeTypeGuesserAdapter implements MimeTypeGuesserInterface
9
9
{
10
+ /**
11
+ * @param string $filePath
12
+ * @return ?string
13
+ */
10
14
public function guess ($ filePath )
11
15
{
12
16
return MimeTypes::getDefault ()->guessMimeType ($ filePath );
Original file line number Diff line number Diff line change @@ -14,33 +14,50 @@ public function __construct(UploadedFile $uploadedFile)
14
14
$ this ->uploadedFile = $ uploadedFile ;
15
15
}
16
16
17
+ /**
18
+ * @return ?string
19
+ */
17
20
public function getTmpName ()
18
21
{
19
22
return $ this ->uploadedFile ->getPathname ();
20
23
}
21
24
25
+ /**
26
+ * @return ?string
27
+ */
22
28
public function getName ()
23
29
{
24
30
return $ this ->uploadedFile ->getClientOriginalName ();
25
31
}
26
32
33
+ /**
34
+ * @return ?string
35
+ */
27
36
public function getSize ()
28
37
{
29
38
return $ this ->uploadedFile ->getSize ();
30
39
}
31
40
41
+ /**
42
+ * @return ?string
43
+ */
32
44
public function getType ()
33
45
{
34
46
return $ this ->uploadedFile ->getMimeType ();
35
47
}
36
48
49
+ /**
50
+ * @return int
51
+ */
37
52
public function getError ()
38
53
{
39
54
return $ this ->uploadedFile ->getError ();
40
55
}
41
56
42
57
/**
43
58
* {@inheritDoc}
59
+ *
60
+ * @return bool
44
61
*/
45
62
public function isUploadedFile ()
46
63
{
You can’t perform that action at this time.
0 commit comments