forked from EvanDotPro/SpiffyDoctrine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated INSTALL.md with the proper url.
- Loading branch information
Kyle Spraggs
committed
Nov 4, 2011
1 parent
d1fb130
commit cdc8395
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace SpiffyDoctrine\Test\Authentication\Adapter; | ||
|
||
class DoctrineEntityTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testDoIWork() | ||
{ | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
<?php | ||
use Zend\Loader\AutoloaderFactory, | ||
Zend\Config\Config, | ||
Zend\Loader\ModuleAutoloader, | ||
Zend\Module\Manager as ModuleManager, | ||
Zend\Module\ManagerOptions, | ||
Zend\Mvc\Bootstrap, | ||
Zend\Mvc\Application; | ||
|
||
ini_set('display_errors', true); | ||
error_reporting(-1); | ||
|
||
// Define application environment | ||
defined('APPLICATION_ENV') | ||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); | ||
|
||
// Ensure library/ is on include_path | ||
set_include_path(implode(PATH_SEPARATOR, array( | ||
realpath(__DIR__ . '/../../../library'), // just for git submodule | ||
realpath(__DIR__ . '/../../../library/ZendFramework/library'), // just for git submodule | ||
get_include_path(), | ||
))); | ||
|
||
require_once 'Zend/Loader/AutoloaderFactory.php'; | ||
AutoloaderFactory::factory(array('Zend\Loader\StandardAutoloader' => array())); | ||
|
||
$appConfig = new Config(include __DIR__ . '/../../../configs/application.config.php'); | ||
|
||
$moduleLoader = new ModuleAutoloader($appConfig['module_paths']); | ||
$moduleLoader->register(); | ||
|
||
$moduleManager = new ModuleManager( | ||
$appConfig['modules'], | ||
new ManagerOptions($appConfig['module_manager_options']) | ||
); | ||
|
||
$bootstrap = new Bootstrap($moduleManager); | ||
$application = new Application(); | ||
$bootstrap->bootstrap($application); | ||
$locator = $application->getLocator(); |