38 Commits

Author SHA1 Message Date
David Buchmann bcba9a2bea adjust to phpstan being more precise which line of chained calls triggers an error 2026-03-04 10:24:07 +01:00
David Buchmann fa7742a9e4 phpstan level 2 for tests 2025-01-03 09:57:47 +01:00
David Buchmann 64275fdd1e convert annotations to attributes 2024-03-28 11:12:30 +01:00
David Buchmann d06ce3ffd7 refactor to phpunit 10 event system 2024-03-26 17:46:30 +01:00
David Buchmann 3974c97ef7 add return declaration to all remaining methods missing them 2024-03-25 11:11:49 +01:00
David Buchmann 82957dc3b6 fix symfony 6 compatibility and cleanup build matrix 2022-01-25 17:22:55 +01:00
David Buchmann 845d4eba32 adjust to phpunit 8 BC breaks
* have no risky tests
* fix deprecations
2021-12-21 10:37:31 +01:00
David Buchmann 5f2449253d use phpunit bridge and support current phpunit versions 2020-02-05 10:19:12 +01:00
David Buchmann 8ae3286ce3 catch correct exception, matters now that httplug has been fixed 2020-01-03 11:16:46 +01:00
XWB d6aa9e8cec Use LegacyEventDispatcherProxy for Symfony 4.3 2019-11-05 15:56:08 +01:00
Alessandro Lai 77165c36c7 Update to PHPUnit 5.7+/6.x (#365)
* Support PHP 6 and the forward compatibility layer of 5.7 for PHP 5.6
2017-08-23 17:32:58 +02:00
David Buchmann 4e02318f33 Apply fixes from StyleCI 2017-08-17 13:38:57 +00:00
David de Boer c2274922fd Remove Interface suffix and rename proxy client interfaces
* Apply fixes from StyleCI (#337)
* Update changelog
2016-12-06 20:59:06 +01:00
David Buchmann 2c6f31baeb clean up event listener class naming (#324) 2016-11-01 18:00:25 +01:00
David Buchmann 745eb627ae refactor http abstraction 2016-10-15 16:16:25 +02:00
David Buchmann 7236f2df61 use OptionsResolver 2016-09-13 08:43:10 +02:00
David Buchmann 846a8be289 Applied fixes from StyleCI 2016-07-01 10:48:35 -04:00
David Buchmann b32a72bb66 Revert "drop the x- prefix from our custom headers"
This reverts commit 2b4c6610f0.
2016-04-06 07:58:01 +02:00
David Buchmann 2b4c6610f0 drop the x- prefix from our custom headers 2016-04-06 07:57:29 +02:00
David Buchmann 465c35c531 Upgrade php-http integration
convert to options array
2016-01-01 17:45:29 +01:00
André R e412091cf2 Add abstracted tag handling
Aims to allow support for tagging also on Symfomy HTTP Cache and
potentially other caches by limiting the feature to focus on only
tags and not any random header.

Closes #234
2015-11-18 13:48:26 +01:00
David de Boer 2c98fc7195 Use short array syntax
Just because we can. :)
2015-06-27 14:00:44 +02:00
David de Boer fb2a403664 Remove deprecations
* Remove deprecated methods
* Update docs
* Switch to PHP 5.4+ array syntax
2015-06-19 21:47:42 +02:00
David de Boer 6a3f996f43 Use php-http/adapter for HTTP client abstraction
Remove custom adapters

Update to PSR-7, Guzzle 6 and php-http/adapter

Remove PHP 5.3 from build matrix

Adopt changes in http-adapter and use discovery

Remove dependencies on Guzzle (components)

We use Guzzle 6 for testing, so it needs to stay in require-dev.

Use php-http/message-decorator

Change branch alias to 2.0.x

Add docs

Allow failures on hhvm

Fix connection timing issues

Remove all Guzzle-specifics from the tests, too

Change documentation links to stable

Try to run HHVM on Guzzle 5

Remove Bash file

Add version notice to docs

Fix setPurgeLocation docs

Don't mock exceptions

* It’s easier not to
* Mocking exceptions causes HHVM to fail with "Call to a member function
  mockery_getName() on a non-object (NULL)"

Extract createUri() method

Remove allow_failures for HHVM

Add response code to cache hit/miss assertion message

Throw exceptions for error status codes
2015-06-19 19:30:02 +02:00
David Buchmann e2414fc1b3 cleanup usage of event dispatcher with CacheInvalidator 2015-02-11 23:18:49 +01:00
Calum Brodie 879db5e1ea Add headers as optional argument to CacheInvalidator 2014-08-13 02:39:22 +01:00
David Buchmann 51e240e3d8 fix garbled namespaces 2014-08-05 16:33:35 +02:00
David Buchmann 95ae1b0617 applied codestyle fixer to remove unused imports and align phpdoc 2014-08-05 16:16:10 +02:00
David Buchmann 49ac663631 add some more tests 2014-08-02 12:50:39 +02:00
David Buchmann fc4aca6fe3 cache tag invalidation needs to escape for regex 2014-07-16 18:45:18 +02:00
Simone Fumagalli adf9ba21a0 Clean up nginx client and setup
- Expanded purge & refresh tests and new expired test
- Remove cache TTL in proxy_cache_valid (as suggested by @ddeboer)
- Custom log for better debug
- Improve installing nginx for testing
2014-05-18 00:49:06 +02:00
David de Boer 176d35ab7f Add FOS license header (fix #57) 2014-05-16 09:31:58 +02:00
David de Boer ed626d3750 Improve naming
Rename Invalidation to ProxyClient and Method to Invalidation

Rename AbstractCacheProxy to AbstractProxyClient

Rename CacheProxyInterface to ProxyClientInterface

Rename UnsupportedInvalidationMethodException to UnsupportedProxyOperationException
2014-03-20 21:26:17 +01:00
David Buchmann bb8f7203b5 use factory methods for exceptions 2014-03-03 08:27:56 +01:00
David Buchmann ec34206585 add a supports method to the cache invalidator 2014-03-01 13:22:26 +01:00
David de Boer 8fade022e1 Implement log event subscriber and other improvements
Rename construction to setup

Fix use statement

Add unexpected collection to collection instead of throwing

Add MissingHostException explanation

Improve class description

Fix logger example

Re-add Monolog suggestion
2014-02-24 22:40:51 +01:00
David de Boer a5d64233f9 Removed obsolete setUp method
Bring PHPDocs in line with PSR-5
2014-02-24 22:40:47 +01:00
David de Boer 120634c6f6 Change autoloading to PSR-4 (fix #15) 2014-02-13 11:41:20 +01:00