Skip to content

Commit

Permalink
Added missing new config for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
judus committed Dec 24, 2017
1 parent a707dfa commit 37edbc8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ Minimal is a web application framework for PHP.

##### NOTE
- This is version v0.*, changes are to be expected
- Don't be fooled by the static classes, these are facades:
- The static classes in these examples are facades:
https://en.wikipedia.org/wiki/Facade_pattern
For example:
Router::post() basically means $app->container('Router')->post().
So if you don't like the Minimal-Router, go to config/providers.php and change
'Router' => Maduser\Minimal\Routing\Router::class to whatever Router class you like,
just mind the RouterInterface and update the config/bindings.php. Cool huh?!
Router::post() basically means $app->getRouter()->post().

## Requirements

Expand Down Expand Up @@ -761,6 +758,8 @@ $ php minimal config
---
## Components

Note about failing builds: These packages have no tests (yet?). This is a free time project and since I don't have much free time, for now the less important packages will have to do without tests.

Minimal requires at least these packages:
- [![Build Status](https://travis-ci.org/judus/minimal-collections.svg?branch=master)](https://travis-ci.org/judus/minimal-collections)
[![Latest Version](http://img.shields.io/packagist/v/minimal/collections.svg)](https://packagist.org/packages/minimal/collections)
Expand Down Expand Up @@ -816,7 +815,6 @@ These packages are also included but are not necessary:
---
#### TODOs until v1.0.0
- Replace all IOC with Provider in application object (Minimal.php)
- Finish the ORM, some methods don't use prepared statement IMPORTANT!
- Test the complementary libraries
- Write more testcases for the core packages
- Api documentation
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"minimal/assets": "v0.1.2",
"minimal/benchmark": "v0.1.2",
"minimal/cli": "v0.1.1",
"minimal/database": "v0.1.2",
"minimal/database": "v0.1.3",
"minimal/html": "v0.1.2",
"minimal/minimal": "v0.1.11",
"minimal/paths": "v0.1.3",
Expand Down
9 changes: 9 additions & 0 deletions config/bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
Maduser\Minimal\Framework\Contracts\FactoryInterface::class =>
Maduser\Minimal\Framework\Factory::class,

Maduser\Minimal\Controllers\Factories\Contracts\ControllerFactoryInterface::class =>
Maduser\Minimal\Controllers\Factories\ControllerFactory::class,

Maduser\Minimal\Controllers\Factories\Contracts\ModelFactoryInterface::class =>
Maduser\Minimal\Controllers\Factories\ModelFactory::class,

Maduser\Minimal\Framework\Factories\Contracts\ModuleFactoryInterface::class =>
Maduser\Minimal\Framework\Factories\ModuleFactory::class,

Maduser\Minimal\Framework\Factories\Contracts\ModuleFactoryInterface::class =>
Maduser\Minimal\Framework\Factories\ModuleFactory::class,

Expand Down

0 comments on commit 37edbc8

Please sign in to comment.