src/PHPDish/Bundle/CoreBundle/Application/Plugin/SimplePlugin.php
public function getRootDir()
    {
        if (null === $this->rootDir) {
            $r = new \ReflectionObject($this);
            $dir = $rootDir = dirname($r->getFileName());
            while (!file_exists($dir.'/composer.json')) {
                if ($dir === dirname($dir)) {
                    return $this->rootDir = $rootDir;
                }
                $dir = dirname($dir);
            }
            $this->rootDir = $dir;
        }

        return $this->rootDir;
    }
public function getRootDir()
    {
        if (null === $this->rootDir) {
            $r = new \ReflectionObject($this);
            $dir = $rootDir = dirname($r->getFileName());
            while (!file_exists($dir.'/composer.json')) {
                if ($dir === dirname($dir)) {
                    return $this->rootDir = $rootDir;
                }
                $dir = dirname($dir);
            }
            $this->rootDir = $dir;
        }

        return $this->rootDir;
    }
{@inheritdoc}