/**
  * Calls the class constructor
  *
  * If the class $class has the method public static $constructor, it
  * will be called.
  *
  * @param String $class           A class which might have a class constructor
  * @param String $constructorName the method name of the class constructor
  *
  * @return bool true if the class constructor was called
  * @throws AutoloaderException_Include_ClassConstructor
  */
 private function _callClassConstructor($class, $constructorName)
 {
     try {
         return InstantAutoloader::_callClassConstructor($class, $constructorName);
     } catch (\Exception $exception) {
         throw new AutoloaderException_Include_ClassConstructor($class, $exception);
     }
 }
Exemple #2
0
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
/**
 * Autoloader
 * 
 * This code was generated automatically.
 * Don't edit this file. Changes will get lost when
 * building a new autoloader.
 *
 * @see  AutoloaderBuilder::build()
 * @link http://php-autoloader.malkusch.de/en/
 */
namespace malkusch\bav\autoloader;

require_once __DIR__ . '/InstantAutoloader.php';
$_autoloader = new InstantAutoloader(__DIR__ . '/index/0.php');
$_autoloader->setBasePath(__DIR__);
$_autoloader->register();
unset($_autoloader);