1 | <?php |
||
11 | class PosixLocatorFactory implements LocatorFactoryInterface |
||
12 | { |
||
13 | /** |
||
14 | * Create a locator from the PATH environment variable. |
||
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) |
||
26 | |||
27 | /** |
||
28 | * Create a locator using a colon-separated PATH string. |
||
29 | * |
||
30 | * The colon is a hard separator. This means that command paths cannot have |
||
31 | * a colon in the name. |
||
32 | * |
||
33 | * @api |
||
34 | * @param string $path The colon-separated PATH string. |
||
35 | * @return \Nubs\Which\Locator The locator. |
||
36 | */ |
||
37 | public function createFromPath($path) |
||
41 | } |
||
42 |