Skip to content

Commit f80f9ac

Browse files
committed
chore: replace more 1.0 references
1 parent 5a55774 commit f80f9ac

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

docs/composer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ As mentioned above, the entire composer configuration for your Flarum site is co
8282
// It's a list of packages we want, and the versions for each.
8383
// We'll discuss this shortly.
8484
"require": {
85-
"flarum/core": "^1.0",
85+
"flarum/core": "^2.0",
8686
"flarum/approval": "*",
8787
"flarum/bbcode": "*",
8888
"flarum/emoji": "*",
@@ -120,7 +120,7 @@ To read more about version strings, see the relevant [composer documentation](ht
120120

121121
For Flarum projects, there's several types of entries you'll see in the `require` section of your root install's `flarum/core`:
122122

123-
- You MUST have a `flarum/core` entry. This should have an explicit version string corresponding to the major release you want to install. For Flarum 1.x versions, this would be `^1.0`.
123+
- You MUST have a `flarum/core` entry. This should have an explicit version string corresponding to the major release you want to install. For Flarum 2.x versions, this would be `^2.0`.
124124
- You should have an entry for each extension you've installed. Some bundled extensions are included by default (e.g. `flarum/tags`, `flarum/suspend`, etc), [others you'll add via composer commands](extensions.md). Unless you have a reason to do otherwise (e.g. you're testing a beta version of a package), we recommend using an asterisk as the version string for extensions (`*`). This means "install the latest version compatible with my flarum/core".
125125
- Some extensions / features might require PHP packages that aren't Flarum extensions. For example, you need the guzzle library to use the [Mailgun mail driver](mail.md). In these cases, the instructions for the extension/feature in question should explain which version string to use.
126126

docs/extend/extending-extensions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ For example, if you were building a new theme for the Flarum Tags extension, you
2424
{
2525
// ...
2626
"require": {
27-
"flarum/core": "^0.1.0-beta.15", // Since all extensions need to require core.
28-
"flarum/tags": "^0.1.0-beta.15" // This tells Flarum to treat tags as a dependency of your extension.
27+
"flarum/core": "^2.0", // Since all extensions need to require core.
28+
"flarum/tags": "*" // This tells Flarum to treat tags as a dependency of your extension.
2929
},
3030
// ...
3131
}

docs/extend/static-code-analysis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ flarum-cli infra phpstan
1919
First you need to require the `flarum/phpstan` package in your extension. You can do this by running the following command in the root of our extension:
2020

2121
```bash
22-
composer require --dev flarum/phpstan:^1.0
22+
composer require --dev flarum/phpstan:^2.0
2323
```
2424

2525
Next, you need to create a `phpstan.neon` file in the root of your extension. This file contains [the configuration for PHPStan](https://phpstan.org/config-reference). You can copy the following configuration into the file:

docs/extend/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $ flarum-cli infra backendTesting
2121
:::
2222

2323
```bash
24-
composer require --dev flarum/testing:^1.0
24+
composer require --dev flarum/testing:^2.0
2525
```
2626

2727
Then, you will need to set up a file structure for tests, and add PHPUnit configuration:

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Is Flarum Stable?
44

5-
Yes! After 6 years of development, Flarum **1.0.0** was released, and we are now spear-heading the development of Flarum **2.0**.
5+
Yes! After 6 years of development, Flarum **1.0.0** was released, and we are now spearheading the development of Flarum **2.0**.
66

77
### What's next after stable?
88

0 commit comments

Comments
 (0)