public function discover($directory, $base_namespace)
    {
        if (is_string($directory)) {
            $directory = [$directory];
        }

        return $this->doDiscovery($directory, $base_namespace);
    }