wp = $wp; } /** * {@inheritdoc} */ public function urls() { $home = $this->wp->home_url(); if ( '' !== (string) $this->wp->option( 'permalink_structure' ) ) { yield new DiscoveredUrl( $home . 'robots.txt', 'file' ); yield new DiscoveredUrl( $home . 'favicon.ico', 'file' ); } foreach ( array_merge( $this->wp->site_icon_urls(), $this->wp->theme_stylesheet_urls() ) as $url ) { yield new DiscoveredUrl( $url, 'asset' ); } } }