MediaWiki REL1_39
ComposerVendorHtaccessCreator.php
Go to the documentation of this file.
1<?php
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, "Require all denied\n" );
42 }
43}
Copyright (C) 2017 Kunal Mehta legoktm@debian.org
static onEvent()
Handle post-install-cmd and post-update-cmd hooks.