Skip to content

Commit

Permalink
Update 5.0 references to 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Mar 24, 2024
1 parent 9ec508b commit c1bc38b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pages/06.sprinkles/05.community/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Once you've found a sprinkle you'd like to use in your own project, the first st
```json
"require": {
...
"userfrosting/theme-adminlte": "^5.0",
"userfrosting/theme-adminlte": "~5.1.0",
"owlfancy/owlery-sprinkle": "^0.1"
},
```
Expand All @@ -44,8 +44,8 @@ use Owlfancy\Sprinkle\Owlery ; //don't forget to include the sprinkle's namespac
If the sprinkle includes Javascript, you will need to add it to both the "dependencies" [in your `package.json`](/asset-management/webpack-encore#npm-and-packages-json)...
```json
"dependencies": {
"@userfrosting/sprinkle-admin": "^5.0",
"@userfrosting/theme-adminlte": "^5.0",
"@userfrosting/sprinkle-admin": "~5.1.0",
"@userfrosting/theme-adminlte": "~5.1.0",
"sprinkle-owlery":"github:owlfancy/sprinkle-owlery"
},
```
Expand Down
2 changes: 1 addition & 1 deletion pages/18.advanced/08.locator/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $this->locator->getResource('schema://default.json');
// 'app/sprinkles/MySite/schema/default.json',
```

The locator will return an instance of the `Resource` object (or an array of `Resource` objects). These objects can be cast as string and will return the absolute path to the resource (file or directory). Further [public methods](https://github.com/userfrosting/framework/tree/5.0/src/UniformResourceLocator/docs#resource-instance) can be used on the Resource object to get more information about the returned resource. For example, to return the sprinkle name where it was found :
The locator will return an instance of the `Resource` object (or an array of `Resource` objects). These objects can be cast as string and will return the absolute path to the resource (file or directory). Further [public methods](https://github.com/userfrosting/framework/tree/5.1/src/UniformResourceLocator/docs#resource-instance) can be used on the Resource object to get more information about the returned resource. For example, to return the sprinkle name where it was found :

```php
$schema = $this->locator->getResource('schema://default.json');
Expand Down

0 comments on commit c1bc38b

Please sign in to comment.