コード例 #1
0
 public static function getLoader()
 {
     if (null !== self::$loader) {
         return self::$loader;
     }
     spl_autoload_register(array('ComposerAutoloaderInitfc5c9af51413a149e4084a610a3ab6de', 'loadClassLoader'), true, true);
     self::$loader = $loader = new \Composer\Autoload\ClassLoader();
     spl_autoload_unregister(array('ComposerAutoloaderInitfc5c9af51413a149e4084a610a3ab6de', 'loadClassLoader'));
     $includePaths = (require __DIR__ . '/include_paths.php');
     array_push($includePaths, get_include_path());
     set_include_path(join(PATH_SEPARATOR, $includePaths));
     $map = (require __DIR__ . '/autoload_namespaces.php');
     foreach ($map as $namespace => $path) {
         $loader->set($namespace, $path);
     }
     $map = (require __DIR__ . '/autoload_psr4.php');
     foreach ($map as $namespace => $path) {
         $loader->setPsr4($namespace, $path);
     }
     $classMap = (require __DIR__ . '/autoload_classmap.php');
     if ($classMap) {
         $loader->addClassMap($classMap);
     }
     $loader->register(true);
     return $loader;
 }
コード例 #2
0
ファイル: google.php プロジェクト: site4com/prometheus
 /**
  * Default listEntities
  * 
  * @access public
  * @param $cachable string
  *       	 the view output will be cached
  * @return void
  */
 public function display($cachable = false, $urlparams = false)
 {
     // Access check.
     if (!$this->user->authorise('jmap.google', $this->option)) {
         $this->setRedirect('index.php?option=com_jmap&task=cpanel.display', JTEXT::_('COM_JMAP_ERROR_ALERT_NOACCESS'));
         return false;
     }
     // Composer autoloader
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/framework/composer/autoload_real.php';
     ComposerAutoloaderInitfc5c9af51413a149e4084a610a3ab6de::getLoader();
     $this->setModelState('google');
     parent::display($cachable, $urlparams);
 }
コード例 #3
0
ファイル: autoload.php プロジェクト: phpwomen/combell
<?php

// autoload.php @generated by Composer
require_once __DIR__ . '/composer' . '/autoload_real.php';
return ComposerAutoloaderInitfc5c9af51413a149e4084a610a3ab6de::getLoader();