protected function getElfinderPath() { $reflector = new \ReflectionClass('elFinder'); return realpath(dirname($reflector->getFileName()) . '/..'); }