private function findPath($directory)
    {
        $path = [];
        $path[] = $this->basePath;
        $path[] = $directory;
        $path[] = 'views';

        return implode(DIRECTORY_SEPARATOR, $path);
    }