-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
<?xml version="1.0"?> | ||
<projectProfile type="default" version="1.10"> | ||
<projectDirectory> | ||
<projectProfileFile filesystemName=".zfproject.xml"/> | ||
<applicationDirectory classNamePrefix="Application_"> | ||
<apisDirectory enabled="false"/> | ||
<configsDirectory> | ||
<applicationConfigFile type="ini"/> | ||
</configsDirectory> | ||
<controllersDirectory> | ||
<controllerFile controllerName="Index"> | ||
<actionMethod actionName="index"/> | ||
<actionMethod actionName="header"/> | ||
<actionMethod actionName="footer"/> | ||
</controllerFile> | ||
<controllerFile controllerName="Error"/> | ||
</controllersDirectory> | ||
<formsDirectory enabled="false"/> | ||
<layoutsDirectory enabled="false"/> | ||
<modelsDirectory/> | ||
<modulesDirectory> | ||
<moduleDirectory moduleName="site"> | ||
<apisDirectory enabled="false"/> | ||
<configsDirectory enabled="false"/> | ||
<controllersDirectory> | ||
<controllerFile controllerName="Index"> | ||
<actionMethod actionName="index"/> | ||
</controllerFile> | ||
</controllersDirectory> | ||
<formsDirectory enabled="false"/> | ||
<layoutsDirectory enabled="false"/> | ||
<modelsDirectory/> | ||
<viewsDirectory> | ||
<viewScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="index"/> | ||
</viewControllerScriptsDirectory> | ||
</viewScriptsDirectory> | ||
<viewHelpersDirectory/> | ||
<viewFiltersDirectory/> | ||
</viewsDirectory> | ||
</moduleDirectory> | ||
<moduleDirectory moduleName="admin"> | ||
<apisDirectory enabled="false"/> | ||
<configsDirectory enabled="false"/> | ||
<controllersDirectory> | ||
<controllerFile controllerName="Index"> | ||
<actionMethod actionName="index"/> | ||
<actionMethod actionName="header"/> | ||
<actionMethod actionName="footer"/> | ||
</controllerFile> | ||
</controllersDirectory> | ||
<formsDirectory enabled="false"/> | ||
<layoutsDirectory enabled="false"/> | ||
<modelsDirectory/> | ||
<viewsDirectory> | ||
<viewScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="index"/> | ||
</viewControllerScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="header"/> | ||
</viewControllerScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="footer"/> | ||
</viewControllerScriptsDirectory> | ||
</viewScriptsDirectory> | ||
<viewHelpersDirectory/> | ||
<viewFiltersDirectory/> | ||
</viewsDirectory> | ||
</moduleDirectory> | ||
<moduleDirectory moduleName="my"> | ||
<apisDirectory enabled="false"/> | ||
<configsDirectory enabled="false"/> | ||
<controllersDirectory/> | ||
<formsDirectory enabled="false"/> | ||
<layoutsDirectory enabled="false"/> | ||
<modelsDirectory/> | ||
<viewsDirectory> | ||
<viewScriptsDirectory/> | ||
<viewHelpersDirectory/> | ||
<viewFiltersDirectory/> | ||
</viewsDirectory> | ||
</moduleDirectory> | ||
</modulesDirectory> | ||
<viewsDirectory> | ||
<viewScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="index"/> | ||
</viewControllerScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Error"> | ||
<viewScriptFile forActionName="error"/> | ||
</viewControllerScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="header"/> | ||
</viewControllerScriptsDirectory> | ||
<viewControllerScriptsDirectory forControllerName="Index"> | ||
<viewScriptFile forActionName="footer"/> | ||
</viewControllerScriptsDirectory> | ||
</viewScriptsDirectory> | ||
<viewHelpersDirectory/> | ||
<viewFiltersDirectory enabled="false"/> | ||
</viewsDirectory> | ||
<bootstrapFile filesystemName="Bootstrap.php"/> | ||
</applicationDirectory> | ||
<dataDirectory enabled="false"> | ||
<cacheDirectory enabled="false"/> | ||
<searchIndexesDirectory enabled="false"/> | ||
<localesDirectory enabled="false"/> | ||
<logsDirectory enabled="false"/> | ||
<sessionsDirectory enabled="false"/> | ||
<uploadsDirectory enabled="false"/> | ||
</dataDirectory> | ||
<docsDirectory> | ||
<file filesystemName="README.txt"/> | ||
</docsDirectory> | ||
<libraryDirectory> | ||
<zfStandardLibraryDirectory enabled="false"/> | ||
</libraryDirectory> | ||
<publicDirectory> | ||
<publicStylesheetsDirectory enabled="false"/> | ||
<publicScriptsDirectory enabled="false"/> | ||
<publicImagesDirectory enabled="false"/> | ||
<publicIndexFile filesystemName="index.php"/> | ||
<htaccessFile filesystemName=".htaccess"/> | ||
</publicDirectory> | ||
<projectProvidersDirectory enabled="false"/> | ||
<temporaryDirectory enabled="false"/> | ||
<testsDirectory> | ||
<testPHPUnitConfigFile filesystemName="phpunit.xml"/> | ||
<testApplicationDirectory> | ||
<testApplicationBootstrapFile filesystemName="bootstrap.php"/> | ||
<testApplicationControllerDirectory> | ||
<testApplicationControllerFile filesystemName="IndexControllerTest.php"/> | ||
<testApplicationControllerFile filesystemName="IndexControllerTest.php"/> | ||
</testApplicationControllerDirectory> | ||
</testApplicationDirectory> | ||
<testLibraryDirectory> | ||
<testLibraryBootstrapFile filesystemName="bootstrap.php"/> | ||
</testLibraryDirectory> | ||
</testsDirectory> | ||
</projectDirectory> | ||
</projectProfile> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file was created by JetBrains PhpStorm 2.0 for binding GitHub repository |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | ||
{ | ||
public function _initAutoloaderNamespaces() | ||
{ | ||
require_once APPLICATION_PATH . '/../library/Doctrine/Common/ClassLoader.php'; | ||
|
||
$autoloader = \Zend_Loader_Autoloader::getInstance(); | ||
$fmmAutoloader = new \Doctrine\Common\ClassLoader('Bisna'); | ||
$autoloader->pushAutoloader(array($fmmAutoloader, 'loadClass'), 'Bisna'); | ||
$fmmAutoloader = new \Doctrine\Common\ClassLoader('Ctrlr'); | ||
$autoloader->pushAutoloader(array($fmmAutoloader, 'loadClass'), 'Ctrlr'); | ||
|
||
require_once APPLICATION_PATH . '/../library/Symfony/Component/Di/sfServiceContainerAutoloader.php'; | ||
sfServiceContainerAutoloader::register(); | ||
} | ||
|
||
public function _initModuleLayout() | ||
{ | ||
$front = Zend_Controller_Front::getInstance(); | ||
$front->registerPlugin(new Ctrlr_Controller_Plugin_ModuleLayout()); | ||
$front->setParam('prefixDefaultModule', true); | ||
$eh = new Zend_Controller_Plugin_ErrorHandler(); | ||
$front = Zend_Controller_Front::getInstance()->registerPlugin($eh); | ||
} | ||
|
||
public function _initServices() | ||
{ | ||
$sc = new sfServiceContainerBuilder(); | ||
$loader = new sfServiceContainerLoaderFileXml($sc); | ||
$loader->load(APPLICATION_PATH . "/configs/services.xml"); | ||
Zend_Registry::set('sc', $sc); | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
[production] | ||
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/" | ||
|
||
; -------------------------- | ||
; PHP Specific Configuration | ||
; -------------------------- | ||
phpSettings.display_startup_errors = 1 | ||
phpSettings.display_errors = 1 | ||
|
||
includePaths.library = APPLICATION_PATH "/../library" | ||
includePaths.resource = APPLICATION "/../library/Bisna/Application/Resource" | ||
|
||
|
||
; ---------------------------------------- | ||
; Zend Framework Application Configuration | ||
; ---------------------------------------- | ||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php" | ||
bootstrap.class = "Bootstrap" | ||
|
||
pluginPaths.Ctrlr_Resource = "Ctrlr/Resource" | ||
pluginPaths.Bisna_Application_Resource = "Bisna/Application/Resource" | ||
appnamespace = "Application" | ||
resources.depInjector = 1 | ||
|
||
; ------------------------------ | ||
; Front Controller Configuration | ||
; ------------------------------ | ||
|
||
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" | ||
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" | ||
resources.frontController.params.displayExceptions = 0 | ||
resources.frontController.defaultModule = "site" | ||
|
||
|
||
; ------------------------------------------------------------------------------ | ||
; Doctrine Cache Configuration | ||
; ------------------------------------------------------------------------------ | ||
|
||
; Points to default cache instance to be used. Optional is only one cache is defined | ||
resources.doctrine.cache.defaultCacheInstance = default | ||
|
||
; Cache Instance configuration for "default" cache | ||
;resources.doctrine.cache.instances.default.id = default | ||
resources.doctrine.cache.instances.default.adapterClass = "Doctrine\Common\Cache\ArrayCache" | ||
resources.doctrine.cache.instances.default.namespace = "Application_" | ||
resources.doctrine.cache.instances.default.options.servers.0.host = localhost | ||
resources.doctrine.cache.instances.default.options.servers.0.port = 11211 | ||
;resources.doctrine.cache.instances.default.options.servers.0.persistent = true | ||
;resources.doctrine.cache.instances.default.options.servers.0.weight = 1 | ||
;resources.doctrine.cache.instances.default.options.servers.0.timeout = 1 | ||
;resources.doctrine.cache.instances.default.options.servers.0.retryInterval = 15 | ||
;resources.doctrine.cache.instances.default.options.servers.0.status = true | ||
|
||
; ------------------------------------------------------------------------------ | ||
; Doctrine DBAL Configuration | ||
; ------------------------------------------------------------------------------ | ||
|
||
; Points to default connection to be used. Optional if only one connection is defined | ||
resources.doctrine.dbal.defaultConnection = default | ||
|
||
; DBAL Connection configuration for "default" connection | ||
;resources.doctrine.dbal.connections.default.id = default | ||
;resources.doctrine.dbal.connections.default.eventManagerClass = "Doctrine\Common\EventManager" | ||
;resources.doctrine.dbal.connections.default.eventSubscribers[] = "DoctrineExtensions\Sluggable\SluggableSubscriber" | ||
;resources.doctrine.dbal.connections.default.configurationClass = "Doctrine\DBAL\Configuration" | ||
;resources.doctrine.dbal.connections.default.sqlLoggerClass = "Doctrine\DBAL\Logging\EchoSQLLogger" | ||
|
||
; Database configuration | ||
;resources.doctrine.dbal.connections.default.parameters.wrapperClass = "" | ||
resources.doctrine.dbal.connections.default.parameters.driver = "pdo_mysql" | ||
resources.doctrine.dbal.connections.default.parameters.dbname = "ctrlr" | ||
resources.doctrine.dbal.connections.default.parameters.host = "localhost" | ||
resources.doctrine.dbal.connections.default.parameters.port = 3306 | ||
resources.doctrine.dbal.connections.default.parameters.user = "root" | ||
resources.doctrine.dbal.connections.default.parameters.password = "" | ||
;resources.doctrine.dbal.connections.default.parameters.driverOptions.ATTR_USE_BUFFERED_QUERIES = true | ||
|
||
|
||
; ------------------------------------------------------------------------------ | ||
; Doctrine ORM Configuration | ||
; ------------------------------------------------------------------------------ | ||
|
||
; Points to default EntityManager to be used. Optional if only one EntityManager is defined | ||
resources.doctrine.orm.defaultEntityManager = default | ||
|
||
; EntityManager configuration for "default" manager | ||
;resources.doctrine.orm.entityManagers.default.id = default | ||
;resources.doctrine.orm.entityManager.default.entityManagerClass = "Doctrine\ORM\EntityManager" | ||
;resources.doctrine.orm.entityManager.default.configurationClass = "Doctrine\ORM\Configuration" | ||
;resources.doctrine.orm.entityManager.default.entityNamespaces.app = "Application\Entity" | ||
resources.doctrine.orm.entityManagers.default.connection = default | ||
resources.doctrine.orm.entityManagers.default.proxy.autoGenerateClasses = false | ||
resources.doctrine.orm.entityManagers.default.proxy.namespace = "Ctrlr\Entity\Proxy" | ||
resources.doctrine.orm.entityManagers.default.proxy.dir = APPLICATION_PATH "/../library/Ctrlr/Entity/Proxy" | ||
;resources.doctrine.orm.entityManagers.default.metadataCache = default | ||
;resources.doctrine.orm.entityManagers.default.queryCache = default | ||
;resources.doctrine.orm.entityManagers.default.resultCache = default | ||
;resources.doctrine.orm.entityManagers.default.DQLFunctions.numeric.PI = "DoctrineExtensions\ORM\Query\Functions\Numeric\PiFunction" | ||
resources.doctrine.orm.entityManagers.default.metadataDrivers.0.adapterClass = "Doctrine\ORM\Mapping\Driver\AnnotationDriver" | ||
resources.doctrine.orm.entityManagers.default.metadataDrivers.0.mappingNamespace = "Ctrlr\Entity" | ||
resources.doctrine.orm.entityManagers.default.metadataDrivers.0.mappingDirs[] = APPLICATION_PATH "/../library/Ctrlr/Entity" | ||
resources.doctrine.orm.entityManagers.default.metadataDrivers.0.annotationReaderClass = "Doctrine\Common\Annotations\AnnotationReader" | ||
resources.doctrine.orm.entityManagers.default.metadataDrivers.0.annotationReaderCache = default | ||
;resources.doctrine.orm.entityManagers.default.metadataDrivers.0.annotationReaderNamespaces.App = "Application\DoctrineExtensions\ORM\Mapping" | ||
|
||
|
||
[staging : production] | ||
|
||
|
||
[testing : production] | ||
phpSettings.display_startup_errors = 1 | ||
phpSettings.display_errors = 1 | ||
|
||
|
||
[development : production] | ||
phpSettings.display_startup_errors = 1 | ||
phpSettings.display_errors = 1 | ||
resources.frontController.params.displayExceptions = 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" ?> | ||
<container xmlns="http://symfony-project.org/2.0/container"> | ||
<services> | ||
<service id="testservice" class="Ctrlr\Service\Testservice" shared="true"> | ||
<argument>horst</argument> | ||
<argument type="service" id="reverser" /> | ||
</service> | ||
<service id="reverser" class="Ctrlr\Service\Reverser" shared="true"> | ||
</service> | ||
</services> | ||
</container> |