xyz-caibing
Results
1
issues of
xyz-caibing
class App { private $rootPath; } class Load { public static function register(App $app) { self::$namespaceMap = [ 'Framework' => $app->rootPath ]; } } 这里的app->rootPath 是私有的,应该只有App类内部可以使用