/** * Get path to child plugin class * * @return string */ private static function getPluginDir() { $reflection = new \Nette\Reflection\ClassType(get_called_class()); return dirname($reflection->getFilename()); }