Skip to content

Commit

Permalink
Merge pull request #136 from alexdebril/issue/130
Browse files Browse the repository at this point in the history
Issue/130
  • Loading branch information
alexdebril authored Jun 6, 2017
2 parents 865dad3 + 0b867f2 commit 846253a
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 430 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,13 @@ debril_rss_atom:
private: true
```

Contributors
------------
### Adding non-standard date formats

* Alex Debril
* Elnur Abdurrakhimov https://github.com/elnur
* matdev https://github.com/matdev
Some feeds use date formats which are not compliant with the specifications. You can fix this by adding the format in your configuration

```yml
# app/config/config.yml
debril_rss_atom:
date_formats:
- 'Y/M/d'
```
4 changes: 4 additions & 0 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ services:
feedio:
class: FeedIo\FeedIo
arguments: ["@feedio.client", "@logger"]
calls:
- method: addDateFormats
arguments:
- '%debril_rss_atom.date_formats%'

debril.provider.default:
class: '%debril.provider.default.class%'
Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,18 @@
"require": {
"php": ">=5.3.3",
"symfony/config": "~2.6|~3.0",
"debril/feed-io": "^2.4"
"debril/feed-io": "~2.5"
},
"require-dev": {
"phpunit/phpunit": "~5.5",
"doctrine/common": "~2.3",
"doctrine/doctrine-bundle": "~1.2",
"symfony/framework-bundle": "~2.6|~3.0",
"symfony/validator": "~2.6|~3.0",
"symfony/finder": "~2.6|~3.0",
"symfony/form": "~2.6|~3.0",
"symfony/browser-kit": "~2.6|~3.0"
"symfony/framework-bundle": "~2.6|~3.0 <3.3",
"symfony/config": "3.2",
"symfony/validator": "~2.6|~3.0 <3.3",
"symfony/finder": "~2.6|~3.0 <3.3",
"symfony/form": "~2.6|~3.0 <3.3",
"symfony/browser-kit": "~2.6|~3.0 <3.3"
},
"suggest": {
"guzzlehttp/guzzle": "We can use Guzzle >= 6.0 to fetch feed - set 'driver' to 'guzzle' then"
Expand Down
Loading

0 comments on commit 846253a

Please sign in to comment.