doughnut-wedding/app/autoload.php

30 lines
1.0 KiB
PHP
Raw Normal View History

2017-03-29 09:24:59 -07:00
<?php
2017-04-22 12:43:30 -07:00
/*
* doughnutwedding.com
* Copyright (C) 2017 http://doughnutwedding.com eric@doughnutwedding.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2017-03-29 09:24:59 -07:00
use Composer\Autoload\ClassLoader;
2017-04-22 12:43:30 -07:00
use Doctrine\Common\Annotations\AnnotationRegistry;
2017-03-29 09:24:59 -07:00
/** @var ClassLoader $loader */
$loader = require __DIR__.'/../vendor/autoload.php';
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
return $loader;