Skip to content

Commit

Permalink
Merge pull request #7 from cherry-framework/update-to-new-core-version
Browse files Browse the repository at this point in the history
Update to new core version
  • Loading branch information
ABGEO authored May 5, 2019
2 parents 9e75199 + 5ceb0e5 commit 3e4c63c
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 22 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Cherry-Console Changelog

## [v1.7.0](https://github.com/cherry-framework/console/releases/tag/v1.6.0 "v1.7.0") (2019-04-23)
## [v1.7.1](https://github.com/cherry-framework/console/releases/tag/v1.7.1 "v1.7.1") (2019-05-05)

- Update to new Cherry Core version.
- Remove namespace part from new generated controller route action.

## [v1.7.0](https://github.com/cherry-framework/console/releases/tag/v1.7.0 "v1.7.0") (2019-04-23)

- Added Cherry features maker (See `./console maker`)
- Make controller (`./console make controller`)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"minimum-stability": "dev",
"require": {
"php": ">=5.6.0",
"cherry-project/core": "^1.5",
"cherry-project/core": "1.6.*",
"ext-json": "*",
"ext-readline": "*"
},
Expand Down
32 changes: 17 additions & 15 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions examples/config/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
"homepage": {
"path": "/",
"method": "GET",
"action": "Cherry\\Controller\\DefaultController::index"
"action": "DefaultController::index"
},
"add-new-user": {
"path": "/addUser",
"method": "POST",
"action": "Cherry\\Controller\\DefaultController::addUser"
"action": "DefaultController::addUser"
},
"remove-user": {
"path": "/addUser/{userId}",
"method": "DELETE",
"action": "Cherry\\Controller\\DefaultController::removeUser"
"action": "DefaultController::removeUser"
},
"hello": {
"path": "/hello",
"method": "GET",
"action": "Cherry\\Controller\\HelloController::hello"
"action": "HelloController::hello"
}
}
2 changes: 1 addition & 1 deletion src/Console/Command/Maker.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ private function _makeController(ArgvInput $input, Output $output)
$routes[$controllerTitle] = array(
'path' => '/' . $controllerTitle,
'method' => 'GET',
'action' => 'Cherry\Controller\\' . $controllerName . '::hello'
'action' => $controllerName . '::hello'
);

// Save routes
Expand Down

0 comments on commit 3e4c63c

Please sign in to comment.