OSDN Git Service

php-libraries/Router.git
4 years agoMerge branch 'feature/find_by_name' develop master 2.0.4
frostbane [Tue, 25 Feb 2020 07:48:05 +0000 (16:48 +0900)]
Merge branch 'feature/find_by_name'

4 years agoadd find route by name
frostbane [Tue, 25 Feb 2020 07:47:37 +0000 (16:47 +0900)]
add find route by name

4 years agoMerge branch 'feature/has_route' into develop 2.0.3
frostbane [Mon, 3 Feb 2020 02:57:37 +0000 (11:57 +0900)]
Merge branch 'feature/has_route' into develop

4 years agoadd method to check if a matching route exists
frostbane [Mon, 3 Feb 2020 02:55:23 +0000 (11:55 +0900)]
add method to check if a matching route exists

- requestHasValidRoute checks if a matching route exists and if the request if routed to a valid controller and action
- requestHasRoute only checks if a matching route exists

4 years agoMerge branch 'feature/routing' into develop 2.0.2
frostbane [Tue, 10 Dec 2019 02:00:27 +0000 (11:00 +0900)]
Merge branch 'feature/routing' into develop

4 years agosearch route in reverse
frostbane [Tue, 10 Dec 2019 01:58:44 +0000 (10:58 +0900)]
search route in reverse

4 years agoMerge branch 'feature/routing' 2.0.1
frostbane [Thu, 28 Nov 2019 06:39:35 +0000 (15:39 +0900)]
Merge branch 'feature/routing'

4 years agoRouter::match throws Exception when no match
frostbane [Thu, 28 Nov 2019 06:09:26 +0000 (15:09 +0900)]
Router::match throws Exception when no match

this is for 404 pages

add more unit tests

4 years agoadd checking method visibility
frostbane [Thu, 28 Nov 2019 06:07:19 +0000 (15:07 +0900)]
add checking method visibility

4 years agofix required php version 2.0.0
frostbane [Thu, 28 Nov 2019 06:38:54 +0000 (15:38 +0900)]
fix required php version

4 years agomodify composer.json
frostbane [Thu, 28 Nov 2019 06:35:59 +0000 (15:35 +0900)]
modify composer.json

4 years agoMerge branch 'feature/routing' into develop
frostbane [Thu, 28 Nov 2019 04:45:49 +0000 (13:45 +0900)]
Merge branch 'feature/routing' into develop

4 years agofix route regex and router matching
frostbane [Thu, 28 Nov 2019 04:43:40 +0000 (13:43 +0900)]
fix route regex and router matching

4 years agoecho result if printable
frostbane [Thu, 28 Nov 2019 04:03:31 +0000 (13:03 +0900)]
echo result if printable

4 years agoadd method reflection and parameter sorting
frostbane [Thu, 28 Nov 2019 03:33:03 +0000 (12:33 +0900)]
add method reflection and parameter sorting

4 years agoadd more route unit tests
frostbane [Thu, 28 Nov 2019 02:19:29 +0000 (11:19 +0900)]
add more route unit tests

4 years agodispatch route with a custom instance
frostbane [Wed, 27 Nov 2019 09:50:40 +0000 (18:50 +0900)]
dispatch route with a custom instance

4 years agoMerge branch 'feature/routing' into develop
frostbane [Wed, 27 Nov 2019 09:19:52 +0000 (18:19 +0900)]
Merge branch 'feature/routing' into develop

4 years agofix unit tests
frostbane [Wed, 27 Nov 2019 09:19:19 +0000 (18:19 +0900)]
fix unit tests

failing tests:

 - set dynamic filter

4 years ago(try to) fix unit tests
frostbane [Wed, 27 Nov 2019 07:39:01 +0000 (16:39 +0900)]
(try to) fix unit tests

4 years agoMerge branch 'feature/alvin/routing' into develop 1.3.0
alvin [Thu, 17 Oct 2019 12:23:13 +0000 (21:23 +0900)]
Merge branch 'feature/alvin/routing' into develop

4 years agoバッファーの追加
alvin [Thu, 17 Oct 2019 12:21:25 +0000 (21:21 +0900)]
バッファーの追加

- 直接しゅつ力をやめる
- バッファーの内容を返す
- 有効なファイルがあるかどうかのチェックを追加

4 years agoフォーク開始 1.2.0
alvin [Thu, 17 Oct 2019 11:42:22 +0000 (20:42 +0900)]
フォーク開始

5 years agoFix bug related to #124
Jefersson Nathan [Sun, 29 Apr 2018 17:59:54 +0000 (19:59 +0200)]
Fix bug related to #124

Signed-off-by: Jefersson Nathan <admin@phpse.net>
7 years agoMerge pull request #117 from lpotherat/patch-1
Jefersson Nathan [Mon, 3 Apr 2017 07:16:24 +0000 (04:16 -0300)]
Merge pull request #117 from lpotherat/patch-1

Fix in Router::generate()

7 years agoAdded delimiter parameter to preg_quote
lpotherat [Mon, 3 Apr 2017 07:11:49 +0000 (09:11 +0200)]
Added delimiter parameter to preg_quote

7 years agoFix in Router::generate()
lpotherat [Fri, 31 Mar 2017 14:21:05 +0000 (16:21 +0200)]
Fix in Router::generate()

Fix in Router::generate(), replace matching key in url while looping through param_key.

otherwise, with route  : /action/:type/:id , $router->generate($namedRoute,['id'=>1,'type'=>'type']) generate /action/1/type.

7 years agoMerge pull request #113 from antoine-pous/fix-110
Antoine Pous [Sat, 18 Mar 2017 19:23:36 +0000 (20:23 +0100)]
Merge pull request #113 from antoine-pous/fix-110

Fix issue #110

7 years agoFix issue #110
Antoine Pous [Sat, 18 Mar 2017 19:13:42 +0000 (20:13 +0100)]
Fix issue #110

7 years agoMerge pull request #112 from antoine-pous/github
Antoine Pous [Sat, 18 Mar 2017 12:18:49 +0000 (13:18 +0100)]
Merge pull request #112 from antoine-pous/github

Improve instructions

7 years agoImprove instructions
Antoine Pous [Sat, 18 Mar 2017 12:17:26 +0000 (13:17 +0100)]
Improve instructions

7 years agoMerge pull request #111 from antoine-pous/fix-109
Antoine Pous [Sat, 18 Mar 2017 12:15:14 +0000 (13:15 +0100)]
Merge pull request #111 from antoine-pous/fix-109

Fix issue #109

7 years agoFix issue #109
Antoine Pous [Sat, 18 Mar 2017 12:06:42 +0000 (13:06 +0100)]
Fix issue #109

7 years agoMerge pull request #108 from antoine-pous/github
Antoine Pous [Sat, 18 Mar 2017 11:43:56 +0000 (12:43 +0100)]
Merge pull request #108 from antoine-pous/github

Add github files

7 years agoAdd issue template
Antoine Pous [Sat, 18 Mar 2017 10:46:15 +0000 (11:46 +0100)]
Add issue template

7 years agoAdd contributing guidelines
Antoine Pous [Sat, 18 Mar 2017 10:45:45 +0000 (11:45 +0100)]
Add contributing guidelines

7 years agoMerge pull request #103 from antoine-pous/master 1.2.0-alpha
Antoine Pous [Thu, 9 Mar 2017 21:53:41 +0000 (22:53 +0100)]
Merge pull request #103 from antoine-pous/master

Merge config params with query params #101

7 years agoMerge config params with query params #101
Antoine Pous [Thu, 9 Mar 2017 21:50:32 +0000 (22:50 +0100)]
Merge config params with query params #101

7 years agoMerge pull request #102 from antoine-pous/master
Antoine Pous [Thu, 9 Mar 2017 21:24:03 +0000 (22:24 +0100)]
Merge pull request #102 from antoine-pous/master

Hotfix, test required

7 years agoFix wrong matches count #101
Antoine Pous [Thu, 9 Mar 2017 21:19:24 +0000 (22:19 +0100)]
Fix wrong matches count #101

7 years agoFix broken pattern #101
Antoine Pous [Thu, 9 Mar 2017 21:16:41 +0000 (22:16 +0100)]
Fix broken pattern #101

7 years agoMerge pull request #90 from dannyvankooten/minor-change-unit-tests
Jefersson Nathan [Tue, 10 Jan 2017 14:28:35 +0000 (11:28 -0300)]
Merge pull request #90 from dannyvankooten/minor-change-unit-tests

Call `self` on phpunit method as it's static methods

7 years agoMerge pull request #93 from dannyvankooten/hotfix/phpcs
Jefersson Nathan [Tue, 10 Jan 2017 14:28:01 +0000 (11:28 -0300)]
Merge pull request #93 from dannyvankooten/hotfix/phpcs

Hotfix for phpcs

7 years agoMerge branch 'master' into hotfix/phpcs
Jefersson Nathan [Tue, 10 Jan 2017 14:27:22 +0000 (11:27 -0300)]
Merge branch 'master' into hotfix/phpcs

7 years agoMerge pull request #92 from dannyvankooten/enhancement/add-docheader
Jefersson Nathan [Sun, 25 Dec 2016 20:21:19 +0000 (17:21 -0300)]
Merge pull request #92 from dannyvankooten/enhancement/add-docheader

Added documentation header checker

7 years agoMerge pull request #97 from dannyvankooten/strong-comparators
Jefersson Nathan [Sun, 25 Dec 2016 20:20:53 +0000 (17:20 -0300)]
Merge pull request #97 from dannyvankooten/strong-comparators

Use strict comparisons

7 years agoMerge pull request #95 from dannyvankooten/clean-up-git-ignore
Jefersson Nathan [Sun, 25 Dec 2016 20:20:36 +0000 (17:20 -0300)]
Merge pull request #95 from dannyvankooten/clean-up-git-ignore

Clean up .gitignore

7 years agoMerge pull request #99 from dannyvankooten/use-psr-message-package
Jefersson Nathan [Fri, 23 Dec 2016 16:47:55 +0000 (13:47 -0300)]
Merge pull request #99 from dannyvankooten/use-psr-message-package

Use psr message package to refer to HTTP verbs

7 years agoUse \Fig\Http\Message\RequestMethodInterface to reference HTTP verbs
Jefersson Nathan [Fri, 23 Dec 2016 16:45:25 +0000 (13:45 -0300)]
Use \Fig\Http\Message\RequestMethodInterface to reference HTTP verbs

7 years agocomposer require fig/http-message-util
Jefersson Nathan [Fri, 23 Dec 2016 16:44:27 +0000 (13:44 -0300)]
composer require fig/http-message-util

7 years agoMerge pull request #98 from dannyvankooten/use-single-quotes
Jefersson Nathan [Fri, 23 Dec 2016 15:21:46 +0000 (12:21 -0300)]
Merge pull request #98 from dannyvankooten/use-single-quotes

Replace quotes to avoid unexpected behavior on regex

7 years agoreplace quotes to avoid unexpected behavior on regex
Jefersson Nathan [Fri, 23 Dec 2016 14:48:16 +0000 (11:48 -0300)]
replace quotes to avoid unexpected behavior on regex

7 years agoMerge pull request #96 from dannyvankooten/update-license
Jefersson Nathan [Fri, 23 Dec 2016 14:41:24 +0000 (11:41 -0300)]
Merge pull request #96 from dannyvankooten/update-license

Update license year

7 years agoremove unused variable
Jefersson Nathan [Fri, 23 Dec 2016 14:40:08 +0000 (11:40 -0300)]
remove unused variable

7 years agomove disconnected statement from foreach loop
Jefersson Nathan [Fri, 23 Dec 2016 14:39:27 +0000 (11:39 -0300)]
move disconnected statement from foreach loop

7 years agouse strong comparators
Jefersson Nathan [Fri, 23 Dec 2016 14:39:03 +0000 (11:39 -0300)]
use strong comparators

7 years agoupdate license year
Jefersson Nathan [Fri, 23 Dec 2016 14:35:20 +0000 (11:35 -0300)]
update license year

7 years agoclean up .gitignore
Jefersson Nathan [Fri, 23 Dec 2016 14:32:35 +0000 (11:32 -0300)]
clean up .gitignore

7 years agoMerge pull request #94 from dannyvankooten/ignore-composer-lock
Jefersson Nathan [Thu, 22 Dec 2016 11:35:51 +0000 (08:35 -0300)]
Merge pull request #94 from dannyvankooten/ignore-composer-lock

add composer.lock to .gitignore

7 years agoignore composer.lock
Jefersson Nathan [Thu, 22 Dec 2016 11:32:40 +0000 (08:32 -0300)]
ignore composer.lock

7 years agophpcs: blank line found at end of control structure
Jefersson Nathan [Thu, 22 Dec 2016 11:18:30 +0000 (08:18 -0300)]
phpcs: blank line found at end of control structure

7 years agophpcs: expected 1 space after IF keyword
Jefersson Nathan [Thu, 22 Dec 2016 11:18:06 +0000 (08:18 -0300)]
phpcs: expected 1 space after IF keyword

7 years agoadd checker to the build
Jefersson Nathan [Thu, 22 Dec 2016 11:13:14 +0000 (08:13 -0300)]
add checker to the build

7 years agoadd .docheader file containing the documentation header content
Jefersson Nathan [Thu, 22 Dec 2016 11:12:46 +0000 (08:12 -0300)]
add .docheader file containing the documentation header content

7 years agocomposer require --dev --sort-packages malukenho/docheader
Jefersson Nathan [Thu, 22 Dec 2016 11:12:13 +0000 (08:12 -0300)]
composer require --dev --sort-packages malukenho/docheader

7 years agoMerge pull request #91 from dannyvankooten/use-preg_quote-on-regex
Jefersson Nathan [Thu, 22 Dec 2016 02:58:12 +0000 (23:58 -0300)]
Merge pull request #91 from dannyvankooten/use-preg_quote-on-regex

Use preg_quote on regex

7 years agoUse preg_quote on regex as for security reasons
Jefersson Nathan [Mon, 19 Dec 2016 12:05:19 +0000 (09:05 -0300)]
Use preg_quote on regex as for security reasons

7 years agoCall `self` on phpunit method as it's static methods
Jefersson Nathan [Mon, 19 Dec 2016 11:52:15 +0000 (08:52 -0300)]
Call `self` on phpunit method as it's static methods

7 years agoMerge pull request #85 from antoine-pous/master
Antoine Pous [Sun, 30 Oct 2016 22:24:58 +0000 (23:24 +0100)]
Merge pull request #85 from antoine-pous/master

Improvements + unit tests

7 years agoMerge pull request #84 from TomasVotruba/patch-1
Antoine Pous [Sun, 30 Oct 2016 22:20:51 +0000 (23:20 +0100)]
Merge pull request #84 from TomasVotruba/patch-1

Composer: allow PHP 7 in safer way

7 years agoFix issue #69 and properly implement PR #65 & #67 + unit tests
Antoine Pous [Thu, 27 Oct 2016 11:36:25 +0000 (13:36 +0200)]
Fix issue #69 and properly implement PR #65 & #67 + unit tests

7 years agoMerge remote-tracking branch 'upstream/master'
Antoine Pous [Thu, 27 Oct 2016 10:22:56 +0000 (12:22 +0200)]
Merge remote-tracking branch 'upstream/master'

7 years agocomoser: allow PHP 7 in safer way
Tomáš Votruba [Sat, 15 Oct 2016 11:04:34 +0000 (13:04 +0200)]
comoser: allow PHP 7 in safer way

7 years agoMerge pull request #77 from jackmakiyama/fix/url-match
Jefersson Nathan [Tue, 24 May 2016 05:54:49 +0000 (02:54 -0300)]
Merge pull request #77 from jackmakiyama/fix/url-match

Fixes the match route comparison just for left direction.

7 years agoFixes the match route comparison just for left direction.
Jack Makiyama [Tue, 24 May 2016 05:40:03 +0000 (01:40 -0400)]
Fixes the match route comparison just for left direction.

7 years agoChange object to static calls on assertion methods
Jefersson Nathan [Tue, 5 Apr 2016 11:27:09 +0000 (08:27 -0300)]
Change object to static calls on assertion methods

7 years agoMake static call in assertion method
Jefersson Nathan [Mon, 4 Apr 2016 11:24:58 +0000 (08:24 -0300)]
Make static call in assertion method

7 years agoRemove null initialization
Jefersson Nathan [Sun, 3 Apr 2016 11:22:24 +0000 (08:22 -0300)]
Remove null initialization

7 years agoUse single quotes when possible
Jefersson Nathan [Sat, 2 Apr 2016 11:21:37 +0000 (08:21 -0300)]
Use single quotes when possible

7 years agoGroup `isset` calls
Jefersson Nathan [Fri, 1 Apr 2016 11:20:45 +0000 (08:20 -0300)]
Group `isset` calls

7 years agosimplify current logic
Jefersson Nathan [Tue, 29 Mar 2016 11:18:33 +0000 (08:18 -0300)]
simplify current logic

7 years agofix subsequent align
Jefersson Nathan [Mon, 28 Mar 2016 11:17:59 +0000 (08:17 -0300)]
fix subsequent align

7 years agoRemove paragraph referencing to an example file
Jefersson Nathan [Sun, 27 Mar 2016 11:13:31 +0000 (08:13 -0300)]
Remove paragraph referencing to an example file

7 years agoUpdate composer installation method
Jefersson Nathan [Sat, 26 Mar 2016 11:11:30 +0000 (08:11 -0300)]
Update composer installation method

7 years agoAdded badges to readme
Jefersson Nathan [Fri, 25 Mar 2016 11:09:32 +0000 (08:09 -0300)]
Added badges to readme

7 years agoPsr-4 complains
Jefersson Nathan [Thu, 24 Mar 2016 11:03:32 +0000 (08:03 -0300)]
Psr-4 complains

7 years agoMerge pull request #74 from duylecampos/hotfix-1.1.3
Jefersson Nathan [Thu, 21 Apr 2016 10:41:16 +0000 (07:41 -0300)]
Merge pull request #74 from duylecampos/hotfix-1.1.3

Remove wrong index sum

8 years agoRemove wrong index sum
Duyle Campos [Mon, 7 Mar 2016 17:03:20 +0000 (14:03 -0300)]
Remove wrong index sum

8 years agoMerge pull request #72 from pine3ree/patch-1
Jefersson Nathan [Wed, 10 Feb 2016 17:40:02 +0000 (14:40 -0300)]
Merge pull request #72 from pine3ree/patch-1

avoid calling getName twice per route

8 years agoavoid calling getName twice per route
maks feltrin [Wed, 10 Feb 2016 17:10:55 +0000 (18:10 +0100)]
avoid calling getName twice per route

8 years agoMerge pull request #68 from duylecampos/hotfix-1.1.2
Jefersson Nathan [Tue, 22 Dec 2015 15:49:13 +0000 (12:49 -0300)]
Merge pull request #68 from duylecampos/hotfix-1.1.2

Refactor route to check number of parameters received

8 years agoMerge pull request #70 from dannyvankooten/enhancement/add-phpunit-xml-namespace
Jefersson Nathan [Tue, 22 Dec 2015 15:49:03 +0000 (12:49 -0300)]
Merge pull request #70 from dannyvankooten/enhancement/add-phpunit-xml-namespace

Add phpunit xml namespace

8 years agoRemove old invalid param
Jefersson Nathan [Tue, 22 Dec 2015 15:48:14 +0000 (12:48 -0300)]
Remove old invalid param

8 years agoAdded phpunit xml namespace
Jefersson Nathan [Tue, 22 Dec 2015 15:48:02 +0000 (12:48 -0300)]
Added phpunit xml namespace

8 years agoRefactor route to check number of parameters received
Duyle Campos [Wed, 4 Nov 2015 21:21:49 +0000 (19:21 -0200)]
Refactor route to check number of parameters received

8 years agoTry to load class constructor when method name is not set or empty
Antoine Pous [Sun, 18 Oct 2015 07:38:27 +0000 (09:38 +0200)]
Try to load class constructor when method name is not set or empty

8 years agoMerge pull request #1 from dannyvankooten/master
Antoine pous [Sun, 18 Oct 2015 07:22:27 +0000 (09:22 +0200)]
Merge pull request #1 from dannyvankooten/master

Sync

8 years agoMerge pull request #66 from endelwar/full-test-coverage
Jefersson Nathan [Wed, 7 Oct 2015 14:14:17 +0000 (11:14 -0300)]
Merge pull request #66 from endelwar/full-test-coverage

100% test coverage

8 years agoMerge pull request #63 from endelwar/fix-named-routes
Jefersson Nathan [Tue, 6 Oct 2015 12:29:08 +0000 (09:29 -0300)]
Merge pull request #63 from endelwar/fix-named-routes

Fix named routes

8 years ago100% test coverage
Manuel Dalla Lana [Sun, 27 Sep 2015 13:27:48 +0000 (15:27 +0200)]
100% test coverage