MediaWiki
REL1_32
ComposerVendorHtaccessCreator.php
Go to the documentation of this file.
1
<?php
29
class
ComposerVendorHtaccessCreator
{
30
34
public
static
function
onEvent
() {
35
$fname
= dirname( dirname( __DIR__ ) ) .
"/vendor/.htaccess"
;
36
if
( file_exists(
$fname
) ) {
37
// Already exists
38
return
;
39
}
40
41
file_put_contents(
$fname
,
"Deny from all\n"
);
42
}
43
}
$fname
if(defined( 'MW_SETUP_CALLBACK')) $fname
Customization point after all loading (constants, functions, classes, DefaultSettings,...
Definition
Setup.php:121
ComposerVendorHtaccessCreator
Copyright (C) 2017 Kunal Mehta legoktm@member.fsf.org
Definition
ComposerVendorHtaccessCreator.php:29
ComposerVendorHtaccessCreator\onEvent
static onEvent()
Handle post-install-cmd and post-update-cmd hooks.
Definition
ComposerVendorHtaccessCreator.php:34
includes
composer
ComposerVendorHtaccessCreator.php
Generated on Mon Nov 25 2024 15:56:55 for MediaWiki by
1.10.0