commit
bd903e0696
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ use Slim\App;
|
||||||
class SitemapHelper
|
class SitemapHelper
|
||||||
{
|
{
|
||||||
public static function createSitemap(Logger $logger) {
|
public static function createSitemap(Logger $logger) {
|
||||||
$app = new App();
|
$app = \Slim\Factory\AppFactory::create();
|
||||||
require "../routes/page.php";
|
require "../routes/page.php";
|
||||||
$sitemap = new Sitemap(BASE_DOMAIN);
|
$sitemap = new Sitemap(BASE_DOMAIN);
|
||||||
$sitemap->setPath('../tmp/');
|
$sitemap->setPath('../tmp/');
|
||||||
|
|
Reference in a new issue