public function isCoreFile($file) { return $file === null || strpos(realpath($file), YII2_PATH . DIRECTORY_SEPARATOR) === 0; }