/** * @param string $configFile * @param Nette\DI\CompilerExtension $extension * @return AspectsConfig */ public static function loadAspects($configFile, Nette\DI\CompilerExtension $extension) { return new AspectsConfig($extension->loadFromFile($configFile), $extension); }