addRecommendation(
"00" === substr(sprintf('%o', fileperms($path)), -2),
"$path should not be readable or writeable for other users, current mode is (".substr(sprintf('%o', fileperms($path)), -4).")",
"Change the permissions of the \"$path\" file to 0600"
);
}
if ($conf->has(['main', 'storage', 'subdefs'])) {
$paths[] = $conf->get(['main', 'storage', 'subdefs']);
}
foreach ($paths as $path) {
$this->addRequirement(
is_writable($path),
"$path directory must be writable",
"Change the permissions of the \"$path\" directory so that the web server can write into it."
);
}
}
/**
* {@inheritdoc}
*
* @return FilesystemProbe
*/
public static function create(Application $app)
{
return new static($app['conf']);
}
}