19 public static function execute(Event $event) {
20 self::copyFromElggToRoot(
"install/config/htaccess.dist",
".htaccess");
21 self::copyFromElggToRoot(
"index.php",
"index.php");
22 self::copyFromElggToRoot(
"install.php",
"install.php");
23 self::copyFromElggToRoot(
"upgrade.php",
"upgrade.php");
58 'uservalidationbyemail',
62 foreach ($managed_plugins as
$plugin) {
63 self::symlinkPluginFromRootToElgg($plugin);
76 private static function copyFromElggToRoot($elggPath, $rootPath, $overwrite =
false) {
78 $to = Directory\Local::root()->getPath($rootPath);
80 if (!$overwrite && file_exists($to)) {
84 return copy($from, $to);
95 private static function symlinkPluginFromRootToElgg(
$plugin) {
96 $from = Directory\Local::root()->getPath(
"mod/$plugin");
99 return !file_exists($from) && symlink($to, $from);
A composer command handler to run after composer install.
and give any other recipients of the Program a copy of this License along with the Program You may charge a fee for the physical act of transferring a copy
static elggDir()
Returns a directory that points to the root of Elgg, but not necessarily the install root...
static execute(Event $event)
Copies files that Elgg expects to be in the root directory.
http free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use