1 | <?php |
||
11 | class WindowsLocatorFactory implements LocatorFactoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * Create a locator from the PATH and PATHEXT environment variables. |
||
15 | * |
||
16 | * @api |
||
17 | * @param \Habitat\Environment\Environment $environment The environment |
||
18 | * variable wrapper. Defaults to null which just uses PHP's built-in |
||
19 | * getenv. |
||
20 | * @return \Nubs\Which\Locator The locator. |
||
21 | */ |
||
22 | public function create(Environment $environment = null) |
||
29 | |||
30 | /** |
||
31 | * Create a locator using semicolon-separated PATH and PATHEXT strings. |
||
32 | * |
||
33 | * The semicolon is a hard separator. This means that command paths cannot |
||
34 | * have a semicolon in the name. |
||
35 | * |
||
36 | * The current working directory is always prepended to the list of paths. |
||
37 | * |
||
38 | * @api |
||
39 | * @param string $path The semicolon-separated PATH string. |
||
40 | * @param string $pathext The semicolon-separated PATHEXT string. |
||
41 | * @return \Nubs\Which\Locator The locator. |
||
42 | */ |
||
43 | public function createFromPath($path, $pathext) |
||
49 | } |
||
50 |