PHP Classes

File: app/autoload.php

Recommend this page to a friend!
  Classes of Manolo Salsas  >  Online PHP Image Transform  >  app/autoload.php  >  Download  
File: app/autoload.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Online PHP Image Transform
Application to do interactive image manipulation
Author: By
Last change:
Date: 2 years ago
Size: 545 bytes
 

Contents

Class file image Download
<?php

use Doctrine\Common\Annotations\AnnotationRegistry;
use
Composer\Autoload\ClassLoader;

/**
 * @var $loader ClassLoader
 */
$loader = require __DIR__.'/../vendor/autoload.php';

// intl
if (!function_exists('intl_get_error_code')) {
    require_once
__DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';

   
$loader->add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs');
}

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

return
$loader;

For more information send a message to info at phpclasses dot org.