Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geggleto/hydra
https://github.com/geggleto/hydra
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/geggleto/hydra
- Owner: geggleto
- Created: 2016-05-10T17:41:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-10T20:18:09.000Z (over 8 years ago)
- Last Synced: 2023-08-16T22:17:04.056Z (over 1 year ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hydra
Container Application Framework
## Setup
- Web root of your web server should be www/
## Install
- `php composer.phar create-project geggleto/hydra [your-project-name]`## Example
- See www/auth/index.php
## Container Access in sub-apps
Note that the sub-apps do not have access directly to the container, this
is to prevent sub-apps overwriting other module's settings. Sub-apps have
read access to the container through the ContainerInterop interface.The ContainerProxy disables the \ArrayAccess component of the container.
## Todo
- Write composer script to auto-copy the public directories to `www/`
## Thoughts
I am not totally convinced that we should be letting modules access Slim
directly since it could possibly cause overlap in some areas. The container
instances should be initialized on a per sub-application basis then merged
into Slim's DIC.