summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/docs/favicon.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/docs/favicon.markdown')
-rw-r--r--vendor/fguillot/picofeed/docs/favicon.markdown14
1 files changed, 4 insertions, 10 deletions
diff --git a/vendor/fguillot/picofeed/docs/favicon.markdown b/vendor/fguillot/picofeed/docs/favicon.markdown
index 92ae11928..14e25955d 100644
--- a/vendor/fguillot/picofeed/docs/favicon.markdown
+++ b/vendor/fguillot/picofeed/docs/favicon.markdown
@@ -5,15 +5,13 @@ Find and download the favicon
-----------------------------
```php
-
-use PicoFeed\Favicon;
+use PicoFeed\Client\Favicon;
$favicon = new Favicon;
// The icon link is https://bits.wikimedia.org/favicon/wikipedia.ico
$icon_link = $favicon->find('https://en.wikipedia.org/');
$icon_content = $favicon->getContent();
-
```
PicoFeed will try first to find the favicon from the meta tags and fallback to the `favicon.ico` located in the website's root if nothing is found.
@@ -27,14 +25,12 @@ Check if a favicon link exists
------------------------------
```php
-
-use PicoFeed\Favicon;
+use PicoFeed\Client\Favicon;
$favicon = new Favicon;
// Return true if the file exists
var_dump($favicon->exists('http://php.net/favicon.ico'));
-
```
Use personalized HTTP settings
@@ -43,14 +39,12 @@ Use personalized HTTP settings
Like other classes, the Favicon class support the Config object as constructor argument:
```php
-
-use PicoFeed\Config;
-use PicoFeed\Favicon;
+use PicoFeed\Config\Config;
+use PicoFeed\Client\Favicon;
$config = new Config;
$config->setClientUserAgent('My RSS Reader');
$favicon = new Favicon($config);
$favicon->find('https://github.com');
-
``` \ No newline at end of file