Skip to content

Commit

Permalink
Merge pull request #30 from yii2mod/feature-upgrade-phpunit
Browse files Browse the repository at this point in the history
Upgrade phpunit version
  • Loading branch information
Igor Chepurnoy authored Aug 20, 2018
2 parents 10e5c79 + 5b81809 commit f513c0b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ Persistent, application-wide settings for Yii2.
[![Build Status](https://travis-ci.org/yii2mod/yii2-settings.svg?branch=master)](https://travis-ci.org/yii2mod/yii2-settings)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/yii2mod/yii2-settings/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/yii2mod/yii2-settings/?branch=master)

Installation
Installation
------------

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
```sh
php composer.phar require --prefer-dist yii2mod/yii2-settings "*"
```

Expand All @@ -38,7 +38,7 @@ Configuration

Before usage this extension, we'll also need to prepare the database.

```
```sh
php yii migrate --migrationPath=@vendor/yii2mod/yii2-settings/migrations
```

Expand All @@ -51,7 +51,7 @@ To access the module, you need to configure the modules array in your applicatio
'class' => 'yii2mod\settings\Module',
],
],
```
```

You can then access settings management section through the following URL:

Expand All @@ -75,7 +75,7 @@ To use the Setting Component, you need to configure the components array in your
],
],
```

Usage:
---------
```php
Expand All @@ -102,13 +102,13 @@ $settings->remove('section', 'key');
// Removes all settings
$settings->removeAll();

$settings->invalidateCache(); // automatically called on set(), remove();
$settings->invalidateCache(); // automatically called on set(), remove();
```

Manage custom settings
----------------------

You can use your own form model to manage custom settings for your web application via `SettingsAction`.
You can use your own form model to manage custom settings for your web application via `SettingsAction`.
To use the `SettingsAction` class you need to follow the following steps:

1) Create your own model, for example:
Expand Down Expand Up @@ -220,7 +220,7 @@ class SiteController extends Controller
```

*Now you can access to the settings page by the following URL: http://localhost/path/to/index.php?r=site/manage-settings/*



Internationalization
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
}
],
"require": {
"php": ">=7.0.0",
"php": ">=7.1.0",
"yiisoft/yii2": "~2.0.10",
"yii2mod/yii2-editable": "*",
"yii2mod/yii2-enum": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2.0",
"phpunit/phpunit": "~7.0"
"phpunit/phpunit": "^7.3"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit f513c0b

Please sign in to comment.