you might replace `$baseDir` with `$app['root.path']`