Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Jun 3, 2015
1 parent 61655d0 commit 850a317
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
}
],
"require": {
"typicms/core": "~2.2.0",
"roumen/sitemap": "~2.4.6"
"roumen/sitemap": "~2.5.4",
"typicms/core": "~2.3.0"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/PublicController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
namespace TypiCMS\Modules\Sitemap\Http\Controllers;

use App;
use App\Http\Controllers\Controller;
use Illuminate\Routing\Controller;
use Route;

class PublicController extends Controller
Expand Down
6 changes: 2 additions & 4 deletions src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<?php
namespace TypiCMS\Modules\Sitemap\Providers;

use Config;
use Illuminate\Routing\Router;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
use Illuminate\Routing\Router;

class RouteServiceProvider extends ServiceProvider {

Expand All @@ -25,7 +24,6 @@ class RouteServiceProvider extends ServiceProvider {
public function boot(Router $router)
{
parent::boot($router);

}

/**
Expand All @@ -40,7 +38,7 @@ public function map(Router $router)
/**
* Front office routes
*/
$router->get('sitemap.xml', ['as' => 'sitemap', 'PublicController@generate']);
$router->get('sitemap.xml', ['as' => 'sitemap', 'uses' => 'PublicController@generate']);
});
}

Expand Down

0 comments on commit 850a317

Please sign in to comment.