<?php // Alchemy\Component\UI Tests Bootstrap $basePath = realpath(__DIR__ . '/../') . DIRECTORY_SEPARATOR; //var_dump($basePath); die; include $basePath . 'Tests/tools/ClassLoader.php'; $loader = new Alchemy\Component\ClassLoader\ClassLoader(); $loader->register('Alchemy\\Component\\UI', $basePath, 'Alchemy/Component/UI/'); require_once $basePath . 'vendor/crodas/haanga/lib/Haanga.php'; //require_once 'Parser.php';
<?php /* * autoload.php * * This file is part of the phpalchemy package. * * (c) Erik Amaru Ortiz <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /* * PHPALCHEMY FRAMEWORK AUTOLOADER */ require_once __DIR__ . '/Alchemy/Component/ClassLoader/ClassLoader.php'; require_once __DIR__ . '/Alchemy/Component/DiContainer/DiContainer.php'; $classLoader = Alchemy\Component\ClassLoader\ClassLoader::getInstance(); $classLoader->register('Alchemy', __DIR__ . DIRECTORY_SEPARATOR); $classLoader->register('Notoj', __DIR__ . '/vendor/crodas/Notoj/lib/'); $classLoader->register('Symfony', __DIR__ . '/vendor/symfony/console/'); $classLoader->registerClass('Haanga', 'phpalchemy/haanga/lib/Haanga.php'); $classLoader->registerClass('Smarty', 'smarty/smarty/libs/Smarty.class.php'); set_exception_handler(array(new Alchemy\Exception\Handler(), 'handle'));
<?php if (!is_dir(__DIR__ . '/../vendor')) { throw new Exception("ERROR: Vendors are missing!" . PHP_EOL . "Please execute the following commands to prepare/install vendors:" . PHP_EOL . PHP_EOL . "\$>curl -sS https://getcomposer.org/installer | php" . PHP_EOL . "\$>php composer.phar install"); } $rootDir = realpath(__DIR__ . "/../"); $loader = (include $rootDir . "/vendor/autoload.php"); require $rootDir . "/Tests/tools/ClassLoader.php"; $loader = new \Alchemy\Component\ClassLoader\ClassLoader(); $loader->register("Alchemy", $rootDir, '\\Alchemy\\Component\\UI\\'); $loader->register("Yaml", $rootDir . "/vendor/phpalchemy/Yaml"); $loader->register("Haanga", $rootDir . "/vendor/crodas/haanga/lib"); //$loader->register("Symfony", $rootDir . "/vendor/smfony/yaml/Symfony");