src/LocatorFactory/WindowsLocatorFactory.php
public function create(Environment $environment = null)
    {
        return $this->createFromPath(
            $environment ? $environment->getenv('PATH') : getenv('PATH'),
            $environment ? $environment->getenv('PATHEXT') : getenv('PATHEXT')
        );
    }
public function create(Environment $environment = null)
    {
        return $this->createFromPath(
            $environment ? $environment->getenv('PATH') : getenv('PATH'),
            $environment ? $environment->getenv('PATHEXT') : getenv('PATHEXT')
        );
    }
Create a locator from the PATH and PATHEXT environment variables.

@api
@param \Habitat\Environment\Environment $environment The environment
variable wrapper.  Defaults to null which just uses PHP's built-in
getenv.
@return \Nubs\Which\Locator The locator.