Closed vjik closed 9 months ago
DIRECTORY_SEPARATOR
more versatile?implode()
usage is less readable.
- Where exactly the error is?
- Isn't using
DIRECTORY_SEPARATOR
more versatile?
It's configuration for concrete case (often it will be Linux), versatile not need here. Also /
work both for linux and windows.
implode(DIRECTORY_SEPARATOR, [dirname(__DIR__), 'vendor', 'yiisoft', 'rbac', 'migrations', 'assignments']),
1) incorrect path after vendor 2) replace to more simple
dirname(__DIR__).'/vendor/yiisoft/...'