Skip to content

Commit

Permalink
feat: introduce route caching closes #15
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Jun 6, 2022
1 parent 070bace commit e61aee8
Show file tree
Hide file tree
Showing 9 changed files with 534 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":1,"defects":{"Tests\\RouterTest::testDispatch":4},"times":{"Tests\\RouterCollectionTest::testGetController":0.012,"Tests\\RouterCollectionTest::testRegisterController":0,"Tests\\RouterCollectionTest::testGetNamespace":0,"Tests\\RouterCollectionTest::testGetControllers":0.001,"Tests\\RouterEngineTest::testRoute":0.001,"Tests\\RouterTest::testDispatch":0.009}}
{"version":1,"defects":{"Tests\\RouterTest::testDispatch":4,"Tests\\RouterCollectionTest::testGetControllers":3,"Tests\\RouterCollectionTest::testGetController":3,"Tests\\RouterEngineTest::testRoute":4,"Tests\\RouterTest::testDispatchWithCache":4},"times":{"Tests\\RouterCollectionTest::testGetController":0.002,"Tests\\RouterCollectionTest::testRegisterController":0,"Tests\\RouterCollectionTest::testGetNamespace":0,"Tests\\RouterCollectionTest::testGetControllers":0,"Tests\\RouterEngineTest::testRoute":0.001,"Tests\\RouterTest::testDispatch":0.004,"Tests\\RouterTest::testDispatchWithCache":0.002}}
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
],
"require": {
"symfony/http-foundation": "^5.0 || ^6.0",
"symfony/http-kernel": "^5.0 || ^6.0"
"symfony/http-kernel": "^5.0 || ^6.0",
"psr/simple-cache": "^3.0"
},
"autoload": {
"psr-4": {
Expand All @@ -36,4 +37,4 @@
"require-dev": {
"phpunit/phpunit": "^9.5"
}
}
}
53 changes: 52 additions & 1 deletion composer.lock

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

2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"extends": [
"config:base"
]
}
}
12 changes: 12 additions & 0 deletions src/Cache/Exception.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Scrawler\Router\Cache;

/**
* Class Exceptions
*
* @package Sarahman\SimpleCache
*/
class Exception extends \Exception implements \Psr\SimpleCache\InvalidArgumentException
{
}
Loading

0 comments on commit e61aee8

Please sign in to comment.