Skip to content

Commit a8f2a8a

Browse files
committed
docs: add UPGRADING.md
1 parent 068be1f commit a8f2a8a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

UPGRADING.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Upgrade Guide
22

3+
## Version 1.0.0-beta.7 to 1.0.0-beta.8
4+
5+
### Mandatory Config Changes
6+
7+
#### Helper Autoloading
8+
9+
Helper autoloading has been changed to be done by CodeIgniter's autoloader
10+
instead of Composer.
11+
12+
So you need to update the settings. Run `php spark shield:setup` again, and the
13+
following steps will be done.
14+
15+
1. Add `auth` and `setting` to the `$helpers` array in **app/Config/Autoload.php**:
16+
17+
```php
18+
public $helpers = ['auth', 'setting'];
19+
```
20+
21+
2. Remove the following code in the `initController()` method in
22+
`**app/Controllers/BaseController.php**:
23+
24+
```php
25+
$this->helpers = array_merge($this->helpers, ['setting']);
26+
```
27+
328
## Version 1.0.0-beta.6 to 1.0.0-beta.7
429

530
### The minimum CodeIgniter version

0 commit comments

Comments
 (0)