Elgg\Composer\PostInstall::execute PHP Метод

execute() публичный статический Метод

Copies files that Elgg expects to be in the root directory.
public static execute ( Composer\Script\Event $event ) : void
$event Composer\Script\Event The Composer event (install/upgrade)
Результат void
    public static function execute(Event $event)
    {
        self::copyFromElggToRoot("install/config/htaccess.dist", ".htaccess");
        self::copyFromElggToRoot("index.php", "index.php");
        self::copyFromElggToRoot("install.php", "install.php");
        self::copyFromElggToRoot("upgrade.php", "upgrade.php");
        $managed_plugins = ['blog', 'bookmarks', 'ckeditor', 'custom_index', 'dashboard', 'developers', 'diagnostics', 'discussions', 'embed', 'externalpages', 'file', 'garbagecollector', 'groups', 'invitefriends', 'legacy_urls', 'likes', 'logbrowser', 'logrotate', 'members', 'messageboard', 'messages', 'notifications', 'pages', 'profile', 'reportedcontent', 'search', 'site_notifications', 'tagcloud', 'thewire', 'twitter_api', 'uservalidationbyemail', 'web_services'];
        foreach ($managed_plugins as $plugin) {
            self::symlinkPluginFromRootToElgg($plugin);
        }
    }