Esempio n. 1
0
 /**
  * @param string $Key
  * @param string $Location
  * @param bool   $Overwrite
  */
 function __construct($Key, $Location, $Overwrite = false)
 {
     AutoLoader::getNamespaceAutoLoader('Upload', __DIR__ . '/../../../Library/Upload/src');
     $this->Location = $Location;
     $this->Storage = new FileSystem($this->Location, $Overwrite);
     $this->File = new File($Key, $this->Storage);
 }
Esempio n. 2
0
 /**
  *
  */
 public function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('Eden\\Mail', __DIR__ . '/../../../Vendor/EdenPhpMail/1.0.3-Master', 'Eden\\Mail');
     AutoLoader::getNamespaceAutoLoader('Eden\\Core', __DIR__ . '/../../../Vendor/EdenPhpMail/1.0.3-Master/vendor/eden/core/Eden/Core', 'Eden\\Core');
     AutoLoader::getNamespaceAutoLoader('Eden\\System', __DIR__ . '/../../../Vendor/EdenPhpMail/1.0.3-Master/vendor/eden/system/Eden/System', 'Eden\\System');
     AutoLoader::getNamespaceAutoLoader('Eden\\Type', __DIR__ . '/../../../Vendor/EdenPhpMail/1.0.3-Master/vendor/eden/type/Eden/Type', 'Eden\\Type');
 }
Esempio n. 3
0
 /**
  * @param string $Namespace
  * @param string $Directory
  *
  * @return IBridgeInterface
  */
 public static function getUniversalNamespaceAutoLoader($Namespace, $Directory)
 {
     $Loader = new AutoLoader(new Vendor(new UniversalNamespace()));
     $Loader->getBridgeInterface()->addNamespaceDirectoryMapping(new NamespaceParameter($Namespace), new DirectoryParameter($Directory));
     $Loader->getBridgeInterface()->registerLoader();
     return $Loader->getBridgeInterface();
 }
 /**
  *
  */
 public function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('Doctrine\\ORM', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common\\Cache', __DIR__ . '/../../../Vendor/Doctrine2Cache/1.4.1/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common\\Annotations', __DIR__ . '/../../../Vendor/Doctrine2Annotations/1.2.6/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common\\Lexer', __DIR__ . '/../../../Vendor/Doctrine2Lexer/1.0.1/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common\\Collections', __DIR__ . '/../../../Vendor/Doctrine2Collections/1.3.0/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Instantiator', __DIR__ . '/../../../Vendor/Doctrine2Instantiator/1.0.5/src');
     parent::__construct();
 }
 /**
  *
  */
 function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('Doctrine\\ORM', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/cache/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/annotations/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/lexer/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/collections/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Instantiator', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/instantiator/src');
     parent::__construct();
 }
 /**
  * @param FileParameter $FileOption
  */
 public function __construct(FileParameter $FileOption)
 {
     AutoLoader::getNamespaceAutoLoader('Symfony\\Component', __DIR__ . '/../../../Vendor/');
     $this->FileOption = $FileOption;
     try {
         $this->Instance = new Finder();
         $this->Instance->useBestAdapter()->files()->name(pathinfo($FileOption->getFile(), PATHINFO_BASENAME))->in(pathinfo($FileOption->getFile(), PATHINFO_DIRNAME));
     } catch (\Exception $Exception) {
         // Nothing
     }
 }
 public function __construct($BaseUrl = '')
 {
     AutoLoader::getNamespaceAutoLoader('Symfony\\Component', __DIR__ . '/../../../Vendor/');
     AutoLoader::getNamespaceAutoLoader('Symfony\\Component', __DIR__ . '/../../../../../Core/HttpKernel/Vendor/');
     $this->SymfonyRouteCollection = new RouteCollection();
     $this->SymfonyRequestContext = new RequestContext();
     $this->SymfonyRequestContext->setBaseUrl($BaseUrl);
     $this->SymfonyUrlMatcher = new UrlMatcher($this->SymfonyRouteCollection, $this->SymfonyRequestContext);
     $this->SymfonyEventDispatcher = new EventDispatcher();
     $this->SymfonyEventDispatcher->addSubscriber(new RouterListener($this->SymfonyUrlMatcher));
     $this->SymfonyHttpKernel = new HttpKernel($this->SymfonyEventDispatcher, new ControllerResolver());
 }
Esempio n. 8
0
 /**
  * @param string                $Project
  * @param string                $Title
  * @param DirectoryParameter    $Source
  * @param DirectoryParameter    $Destination
  * @param null|ExcludeParameter $Exclude
  */
 public function __construct($Project, $Title, DirectoryParameter $Source, DirectoryParameter $Destination, ExcludeParameter $Exclude = null)
 {
     AutoLoader::getNamespaceAutoLoader('ApiGen', __DIR__ . '/../../../Vendor/ApiGen');
     AutoLoader::getNamespaceAutoLoader('TokenReflection', __DIR__ . '/../../../Vendor/ApiGen/libs/TokenReflection');
     AutoLoader::getNamespaceAutoLoader('FSHL', __DIR__ . '/../../../Vendor/ApiGen/libs/FSHL');
     $this->Project = $Project;
     $this->Title = $Title;
     $this->Source = $Source;
     $this->Destination = $Destination;
     $this->Exclude = $Exclude;
     set_time_limit(0);
     $Config = $this->getConfig();
     require_once __DIR__ . '/../../../Vendor/ApiGen/libs/Nette/Nette/loader.php';
     $Neon = new NeonAdapter();
     $File = FileSystem::getFileWriter(__DIR__ . '/ApiGen.config');
     file_put_contents($File->getLocation(), $Neon->dump($Config));
     $_SERVER['argv'] = array('DUMMY-SHELL-ARGS', '--config', $File->getLocation());
     include __DIR__ . '/../../../Vendor/ApiGen/apigen.php';
 }
 /**
  *
  */
 public function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('Doctrine\\DBAL', __DIR__ . '/../../../Vendor/Doctrine2DBAL/2.5.0/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common', __DIR__ . '/../../../Vendor/Doctrine2Common/2.5.0/lib');
 }
Esempio n. 10
0
 /**
  *
  */
 function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('Symfony\\Component', __DIR__ . '/../');
     $this->SymfonyRequest = SymfonyRequest::createFromGlobals();
 }
Esempio n. 11
0
<?php

namespace SPHERE\UnitTest;

/**
 * MUST start session at this point for tests
 */
\session_start();
require_once __DIR__ . '/../Library/MOC-V/Core/AutoLoader/AutoLoader.php';
use MOC\V\Core\AutoLoader\AutoLoader;
AutoLoader::getNamespaceAutoLoader('SPHERE', __DIR__ . '/../', 'SPHERE');
AutoLoader::getNamespaceAutoLoader('MOC\\V', __DIR__ . '/../Library/MOC-V', 'MOC\\V');
set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/../');
date_default_timezone_set('Europe/Berlin');
Esempio n. 12
0
 /**
  *
  */
 public function __construct()
 {
     require_once __DIR__ . '/../../../Vendor/Twig/lib/Twig/Autoloader.php';
     \Twig_Autoloader::register();
     AutoLoader::getNamespaceAutoLoader('Umpirsky\\Twig\\Extension', __DIR__ . '/../../../Vendor/TwigExtension/TwigPHPFunction/0.0.0/src');
 }
 /**
  *
  */
 function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('Doctrine\\DBAL', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/dbal/lib');
     AutoLoader::getNamespaceAutoLoader('Doctrine\\Common', __DIR__ . '/../../../Vendor/Doctrine2ORM/2.5.0/vendor/doctrine/common/lib');
 }
Esempio n. 14
0
use MOC\V\Component\Document\Component\Bridge\Repository\PhpExcel;
use MOC\V\Core\AutoLoader\AutoLoader;
/**
 * Setup: Php
 */
header('Content-type: text/html; charset=utf-8');
error_reporting(E_ALL);
ini_set('display_errors', 1);
session_start();
session_write_close();
date_default_timezone_set('Europe/Berlin');
/**
 * Setup: Loader
 */
require_once __DIR__ . '/../../Core/AutoLoader/AutoLoader.php';
AutoLoader::getNamespaceAutoLoader('\\MOC\\V', __DIR__ . '/../../');
var_dump(Captcha::getCaptcha()->createCaptcha()->getCaptcha());
/*
$File = FileSystem::getUniversalFileLoader( __FILE__ );
var_dump( $File->getLocation() );
var_dump( $File->getRealPath() );

$File = FileSystem::getSymfonyFinder( __FILE__ );
var_dump( $File->getLocation() );
var_dump( $File->getRealPath() );

$File = FileSystem::getSymfonyFinder( '/TestSuite/Console/index.php' );
var_dump( $File->getLocation() );
var_dump( $File->getRealPath() );

$File = FileSystem::getUniversalFileLoader( '/TestSuite/Console/index.php' );
 public function testStaticNamespaceAutoLoader()
 {
     $Loader = AutoLoader::getNamespaceAutoLoader(__NAMESPACE__, __DIR__);
     $this->assertInstanceOf('MOC\\V\\Core\\AutoLoader\\Component\\IBridgeInterface', $Loader);
     $Loader->unregisterLoader();
 }
Esempio n. 16
0
 */
header('Content-type: text/html; charset=utf-8');
error_reporting(E_ALL);
ini_set('display_errors', 1);
date_default_timezone_set('Europe/Berlin');
session_start();
session_write_close();
set_time_limit(240);
ob_implicit_flush();
ini_set('memory_limit', '1024M');
/**
 * Setup: Loader
 */
require_once __DIR__ . '/../../Library/MOC-V/Core/AutoLoader/AutoLoader.php';
AutoLoader::getNamespaceAutoLoader('MOC\\V', __DIR__ . '/../../Library/MOC-V');
AutoLoader::getNamespaceAutoLoader('SPHERE', __DIR__ . '/../../', 'SPHERE');
/**
 * Setup: LESS-Parser
 */
require_once __DIR__ . '/../../Library/LessPhp/1.7.0.5/lessc.inc.php';
$Parser = array('cache_dir' => __DIR__ . '/Resource', 'compress' => false);
$Less = new \Less_Parser($Parser);
$Less->parseFile(__DIR__ . '/../../Library/Bootstrap/3.3.5/less/bootstrap.less');
// Grid
$Less->parse('@grid-gutter-width: 20px;');
//$Less->parse( '@body-bg: #000;' );
//$Less->parse( '@text-color: @gray-lighter;' );
//$Less->parse( '@icon-font-path: "../../../Library/Bootstrap.Glyphicons/1.9.0/glyphicons_halflings/web/html_css/fonts/";' );
//
//$Less->parse( '@headings-font-family: "CorpoALigCondensedRegular";' );
$Less->parse('@font-size-base: 13px;');
Esempio n. 17
0
 public function __construct()
 {
     AutoLoader::getNamespaceAutoLoader('phpseclib', __DIR__ . '/../../../Vendor/PhpSecLib/2.0.0');
 }