-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.phpstorm.meta.php
37 lines (31 loc) · 945 Bytes
/
.phpstorm.meta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* PhpStorm code completion
*
* Add code completion for PSR-11 Container Interface and more...
*/
namespace PHPSTORM_META {
use Interop\Container\ContainerInterface as InteropContainerInterface;
use Psr\Container\ContainerInterface as PsrContainerInterface;
use Psr\Http\Message\ServerRequestInterface;
use PSR7Session\Http\SessionMiddleware;
use PSR7Session\Session\SessionInterface;
// Old Interop\Container\ContainerInterface
override(InteropContainerInterface::get(0),
map([
'' => '@',
])
);
// PSR-11 Container Interface
override(PsrContainerInterface::get(0),
map([
'' => '@',
])
);
// PSR-7 requests attributes; e.g. PSR-7 Storage-less HTTP Session
override(ServerRequestInterface::getAttribute(0),
map([
SessionMiddleware::SESSION_ATTRIBUTE instanceof SessionInterface,
])
);
}