Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Loader.php')
-rw-r--r--core/Loader.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/core/Loader.php b/core/Loader.php
deleted file mode 100644
index b89e7743f9..0000000000
--- a/core/Loader.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-/**
- * Piwik - free/libre analytics platform
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
- *
- */
-
-namespace Piwik;
-
-/**
- * Initializes the Composer Autoloader
- * @package Piwik
- */
-class Loader
-{
- public static function init()
- {
- return self::getLoader();
- }
-
- /**
- * @return \Composer\Autoload\ClassLoader
- */
- private static function getLoader()
- {
- if (file_exists(PIWIK_INCLUDE_PATH . '/vendor/autoload.php')) {
- $path = PIWIK_INCLUDE_PATH . '/vendor/autoload.php'; // Piwik is the main project
- } else {
- $path = PIWIK_INCLUDE_PATH . '/../../autoload.php'; // Piwik is installed as a dependency
- }
-
- $loader = require $path;
-
- return $loader;
- }
-}