forked from zendframework/modules.zendframework.com
-
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.
- Loading branch information
1 parent
ed8fee6
commit a227bf1
Showing
37 changed files
with
49 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "library/ZendFramework"] | ||
path = library/ZendFramework | ||
url = git://git.zendframework.com/zf.git | ||
[submodule "vendor/ZendFramework"] | ||
path = vendor/ZendFramework | ||
url = git://github.com/zendframework/zf2.git |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
<?php | ||
return array( | ||
'module_paths' => array( | ||
realpath(dirname(__DIR__) . '/module'), | ||
realpath(dirname(__DIR__) . '/vendor'), | ||
), | ||
'modules' => array( | ||
'Application', | ||
), | ||
'module_listener_options' => array( | ||
'config_cache_enabled' => false, | ||
'cache_dir' => realpath(dirname(__DIR__) . '/data/cache'), | ||
'application_environment' => getenv('APPLICATION_ENV'), | ||
), | ||
); |
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,8 @@ | ||
About this directory: | ||
===================== | ||
|
||
By default, this application is configured to load all configs in | ||
`./config/autoload/*.config.php`. Doing this provides a location for a | ||
developer to drop in configuration override files provided by modules, as well | ||
as cleanly provide individual, application-wide config files for things like | ||
database connections, etc. |
Submodule ZendFramework
deleted from
9ef861
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
../modules/Application/public/images | ||
../module/Application/public/images |
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,30 +1,20 @@ | ||
<?php | ||
// Define application environment | ||
defined('APPLICATION_ENV') | ||
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production')); | ||
|
||
// Ensure ZF is on the include path | ||
set_include_path(implode(PATH_SEPARATOR, array( | ||
realpath(__DIR__ . '/../library'), | ||
realpath(__DIR__ . '/../library/ZendFramework/library'), | ||
get_include_path(), | ||
))); | ||
|
||
require_once 'Zend/Loader/AutoloaderFactory.php'; | ||
require_once dirname(__DIR__) . '/vendor/ZendFramework/library/Zend/Loader/AutoloaderFactory.php'; | ||
Zend\Loader\AutoloaderFactory::factory(array('Zend\Loader\StandardAutoloader' => array())); | ||
|
||
$appConfig = new Zend\Config\Config(include __DIR__ . '/../configs/application.config.php'); | ||
$appConfig = include dirname(__DIR__) . '/etc/application.config.php'; | ||
|
||
$moduleLoader = new Zend\Loader\ModuleAutoloader($appConfig['module_paths']); | ||
$moduleLoader->register(); | ||
|
||
$moduleManager = new Zend\Module\Manager( | ||
$appConfig['modules'], | ||
new Zend\Module\ManagerOptions($appConfig['module_manager_options']) | ||
); | ||
$moduleManager = new Zend\Module\Manager($appConfig['modules']); | ||
$listenerOptions = new Zend\Module\Listener\ListenerOptions($appConfig['module_listener_options']); | ||
$moduleManager->setDefaultListenerOptions($listenerOptions); | ||
$moduleManager->getConfigListener()->addConfigGlobPath(dirname(__DIR__) . '/etc/conf.d/*.config.php'); | ||
$moduleManager->loadModules(); | ||
|
||
// Create application, bootstrap, and run | ||
$bootstrap = new Zend\Mvc\Bootstrap($moduleManager); | ||
$application = new Zend\Mvc\Application; | ||
$bootstrap = new Zend\Mvc\Bootstrap($moduleManager->getMergedConfig()); | ||
$application = new Zend\Mvc\Application; | ||
$bootstrap->bootstrap($application); | ||
$application->run()->send(); |
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 @@ | ||
../modules/Application/public/css | ||
../module/Application/public/css |
Submodule ZendFramework
added at
a2777d