/**
* Place .htaccess and web.config files into the vendor directory.
*
* @param string $vendor_dir
* Path to vendor directory.
*/
public function writeAccessRestrictionFiles($vendor_dir) { $this->io->
writeError('<info>Hardening vendor directory with .htaccess and web.config files.</info>'
);
// Prevent access to vendor directory on Apache servers.
FileSecurity::
writeHtaccess($vendor_dir, TRUE
);
// Prevent access to vendor directory on IIS servers.
FileSecurity::
writeWebConfig($vendor_dir);
}}