Skip to content

Commit

Permalink
use new domain #2
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-gribanov committed Aug 13, 2017
1 parent b91e043 commit 15936fc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions README.md
@@ -1,4 +1,4 @@
[![AnimeNewsNetwork.com](http://www.animenewsnetwork.com/stylesheets/img/logo.name.no-dot.png)](http://www.animenewsnetwork.com)
[![AnimeNewsNetwork.com](http://www.animenewsnetwork.cc/stylesheets/img/logo.name.no-dot.png)](http://www.animenewsnetwork.cc)

[![Latest Stable Version](https://img.shields.io/packagist/v/anime-db/anime-news-network-browser-bundle.svg?maxAge=3600&label=stable)](https://packagist.org/packages/anime-db/anime-news-network-browser-bundle)
[![Total Downloads](https://img.shields.io/packagist/dt/anime-db/anime-news-network-browser-bundle.svg?maxAge=3600)](https://packagist.org/packages/anime-db/anime-news-network-browser-bundle)
Expand All @@ -12,7 +12,7 @@
AnimeNewsNetwork.com API browser
================================

Encyclopedia API documentation you can see [here](http://www.animenewsnetwork.com/encyclopedia/api.php).
Encyclopedia API documentation you can see [here](http://www.animenewsnetwork.cc/encyclopedia/api.php).

Installation
------------
Expand Down Expand Up @@ -43,8 +43,8 @@ Configuration
```yml
anime_db_anime_news_network_browser:
# Host name
# As a default used 'https://cdn.animenewsnetwork.com'
host: 'https://cdn.animenewsnetwork.com'
# As a default used 'https://cdn.animenewsnetwork.cc'
host: 'https://cdn.animenewsnetwork.cc'

# Reports
# As a default used '/encyclopedia/reports.xml'
Expand All @@ -70,7 +70,7 @@ $browser = $this->get('anime_db.anime_news_network.browser');

### Details

Detail info about anime [Jinki:Extend](http://www.animenewsnetwork.com/encyclopedia/anime.php?id=4658).
Detail info about anime [Jinki:Extend](http://www.animenewsnetwork.cc/encyclopedia/anime.php?id=4658).

```php
$xml = $browser->details(['query' => ['anime' => 4658]]);
Expand All @@ -82,7 +82,7 @@ or
$xml = $browser->details(['query' => ['title' => 4658]]);
```

Detail info about manga [Berserk](http://www.animenewsnetwork.com/encyclopedia/manga.php?id=2298).
Detail info about manga [Berserk](http://www.animenewsnetwork.cc/encyclopedia/manga.php?id=2298).

```php
$xml = $browser->details(['query' => ['manga' => 2298]]);
Expand All @@ -108,7 +108,7 @@ People by Kanji name
$xml = $browser->reports(165, ['query' => ['nskip' => 20, 'nlist' => 10]]);
```

All reports you can see [here](http://www.animenewsnetwork.com/encyclopedia/reports.php).
All reports you can see [here](http://www.animenewsnetwork.cc/encyclopedia/reports.php).

### Catch exceptions

Expand Down
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Expand Up @@ -22,7 +22,7 @@ class Configuration implements ConfigurationInterface
* Example config:
*
* anime_db_anime_news_network_browser:
* host: 'https://cdn.animenewsnetwork.com'
* host: 'https://cdn.animenewsnetwork.cc'
* reports: '/encyclopedia/reports.xml'
* details: '/encyclopedia/api.xml'
* client: 'My Custom Bot 1.0'
Expand All @@ -35,7 +35,7 @@ public function getConfigTreeBuilder()
->root('anime_db_anime_news_network_browser')
->children()
->scalarNode('host')
->defaultValue('https://cdn.animenewsnetwork.com')
->defaultValue('https://cdn.animenewsnetwork.cc')
->cannotBeEmpty()
->end()
->scalarNode('reports')
Expand Down
Expand Up @@ -40,21 +40,21 @@ public function config()
return [
[
[],
'https://cdn.animenewsnetwork.com',
'https://cdn.animenewsnetwork.cc',
'/encyclopedia/reports.xml',
'/encyclopedia/api.xml',
'',
],
[
[
'anime_db_anime_news_network_browser' => [
'host' => 'http://cdn.animenewsnetwork.com',
'host' => 'http://cdn.animenewsnetwork.cc',
'reports' => '/encyclopedia/reports.json',
'details' => '/encyclopedia/api.json',
'client' => 'My Custom Bot 1.0',
],
],
'http://cdn.animenewsnetwork.com',
'http://cdn.animenewsnetwork.cc',
'/encyclopedia/reports.json',
'/encyclopedia/api.json',
'My Custom Bot 1.0',
Expand Down
2 changes: 1 addition & 1 deletion tests/DependencyInjection/ConfigurationTest.php
Expand Up @@ -46,7 +46,7 @@ public function testConfigTree()
$this->assertEquals(['host', 'reports', 'details', 'client'], array_keys($children));

$this->assertInstanceOf(ScalarNode::class, $children['host']);
$this->assertEquals('https://cdn.animenewsnetwork.com', $children['host']->getDefaultValue());
$this->assertEquals('https://cdn.animenewsnetwork.cc', $children['host']->getDefaultValue());
$this->assertFalse($children['host']->isRequired());

$this->assertInstanceOf(ScalarNode::class, $children['reports']);
Expand Down

0 comments on commit 15936fc

Please sign in to comment.