# flywp/1.8.0/includes/StaticSite/Engine/Discovery/FeedSource.php

FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel, version 1.8.0. 34 lines.

- Page: https://pluginprobe.com/plugins/flywp/1.8.0/code/includes/StaticSite/Engine/Discovery/FeedSource.php
- Raw: https://pluginprobe.com/plugins/flywp/1.8.0/raw/includes/StaticSite/Engine/Discovery/FeedSource.php
- Modified: 2026-10-01T05:36:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/flywp/1.8.0/code/includes/StaticSite/Engine/Discovery/FeedSource.php#L10-L20`.

```php
<?php

namespace FlyWP\StaticSite\Engine\Discovery;

/**
 * The main feed and the comments feed. The crawler finds other feeds from the page links.
 *
 * No search feed.
 *
 * @since 1.8.0
 */
class FeedSource implements UrlSource {

    /**
     * @var WordPressGateway
     */
    private $wp;

    /**
     * @param WordPressGateway $wp Gateway.
     */
    public function __construct( WordPressGateway $wp ) {
        $this->wp = $wp;
    }

    /**
     * {@inheritdoc}
     */
    public function urls() {
        yield new DiscoveredUrl( $this->wp->feed_link(), 'feed', null, null, $this->wp->newest_modified_gmt( [ 'post' ] ) );
        yield new DiscoveredUrl( $this->wp->feed_link( 'comments_' ), 'feed' );
    }
}

```
