Skip to content

Commit

Permalink
Update for Flarum beta 16
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Apr 16, 2021
1 parent 099e971 commit 868ccd6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Clark Winkelmann
Copyright (c) 2020-2021 Clark Winkelmann

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ I strongly recommend you test the command on a backup first before running it on

## Installation and update

Compatible with both beta 13 and beta 14.

composer require migratetoflarum/renumber-posts

## Documentation
Expand Down
7 changes: 2 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,20 @@
}
],
"support": {
"issues": "https://github.com/migratetoflarum/renumber-posts/issues",
"source": "https://github.com/migratetoflarum/renumber-posts"
},
"require": {
"flarum/core": ">=0.1.0-beta.13 <0.1.0-beta.15"
"flarum/core": "^0.1.0-beta.16"
},
"extra": {
"flarum-extension": {
"title": "Renumber Posts",
"category": "feature",
"icon": {
"name": "fas fa-sort-numeric-down",
"backgroundColor": "#e7672e",
"color": "#fafafa"
}
},
"flagrow": {
"discuss": ""
}
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/RenumberCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ protected function enumerate(string $type, Discussion $discussion)
/**
* @var $url RouteCollectionUrlGenerator
*/
$url = app(UrlGenerator::class)->to('forum');
$url = resolve(UrlGenerator::class)->to('forum');

$this->info($type . ': ' . $url->route('discussion', [
'id' => $discussion->id,
Expand Down

0 comments on commit 868ccd6

Please sign in to comment.