Skip to content

Commit 953a36c

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into issue-#867
2 parents c8656b7 + 35ec97c commit 953a36c

427 files changed

Lines changed: 13336 additions & 4324 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/stale.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 550
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 7
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- "confirmed bug"
16+
- security
17+
- "long-range planning"
18+
19+
# Set to true to ignore issues in a project (defaults to false)
20+
exemptProjects: false
21+
22+
# Set to true to ignore issues in a milestone (defaults to false)
23+
exemptMilestones: true
24+
25+
# Set to true to ignore issues with an assignee (defaults to false)
26+
exemptAssignees: false
27+
28+
# Label to use when marking as stale
29+
staleLabel: wontfix
30+
31+
# Comment to post when marking as stale. Set to `false` to disable
32+
markComment: >
33+
This issue has been automatically marked as stale because it has not had
34+
recent activity. It will be closed if no further activity occurs. Thank you
35+
for your contributions.
36+
37+
# Comment to post when removing the stale label.
38+
# unmarkComment: >
39+
# Your comment here.
40+
41+
# Comment to post when closing a stale Issue or Pull Request.
42+
# closeComment: >
43+
# Your comment here.
44+
45+
# Limit the number of actions per hour, from 1-30. Default is 30
46+
limitPerRun: 30
47+
48+
# Limit to only `issues` or `pulls`
49+
# only: issues
50+
51+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
52+
# pulls:
53+
# daysUntilStale: 30
54+
# markComment: >
55+
# This pull request has been automatically marked as stale because it has not had
56+
# recent activity. It will be closed if no further activity occurs. Thank you
57+
# for your contributions.
58+
59+
# issues:
60+
# exemptLabels:
61+
# - confirmed

.php_cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ $rules = [
1616
'braces' => true,
1717
'cast_spaces' => true,
1818
'class_definition' => true,
19+
'concat_space' => ['spacing' => 'one'],
1920
'declare_equal_normalize' => true,
2021
'elseif' => true,
2122
'encoding' => true,
@@ -89,15 +90,14 @@ $rules = [
8990
'switch_case_semicolon_to_colon' => true,
9091
'switch_case_space' => true,
9192
'ternary_operator_spaces' => true,
93+
'trailing_comma_in_multiline_array' => true,
9294
'trim_array_spaces' => true,
9395
'unary_operator_spaces' => true,
9496
'visibility_required' => true,
9597
'whitespace_after_comma_in_array' => true,
9698

9799
'header_comment' => [
98-
'header' => $header,
99-
'separate' => 'bottom',
100-
'comment_type' => 'PHPDoc',
100+
'header' => $header
101101
]
102102
];
103103

.styleci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
finder:
2+
exclude:
3+
- "tests"
4+
name: "*.php"
5+
not-name:
6+
- "*Stub.php"
7+
- "*Test.php"
8+
9+
enabled:
10+
- concat_with_spaces
11+
12+
disabled:
13+
- concat_without_spaces

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ language: php
55
services:
66
- mysql
77
- postgresql
8+
- memcached
9+
- redis-server
810

911
php:
10-
- 5.6
11-
- 7
1212
- 7.1
1313
- 7.2
1414
- 7.3
@@ -18,18 +18,22 @@ env:
1818
- DB=mysql
1919
- DB=sqlite
2020
- DB=pgsql
21+
- DB=memory
2122

2223
cache:
2324
directories:
2425
- $HOME/.composer/cache
25-
26+
2627
before_install:
2728
# copy sprinkles.json
2829
- cp app/sprinkles.example.json app/sprinkles.json
2930
# set up db
3031
- bash build/before_install.sh $DB
3132
# update node
3233
- nvm install 10.12.0
34+
# Install Redis and Memcached
35+
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
36+
- printf "\n" | pecl install -f redis
3337

3438
before_script:
3539
# install deps and UF

CHANGELOG.md

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,59 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [v4.3.0]
9+
10+
### Changed Requirements
11+
- Changed minimum PHP Version to 7.1
12+
13+
### Added
14+
- Separated `BakeCommand` class into multiple methods to make it easier for sprinkle to add custom command to the `bake` command.
15+
16+
### Fix
17+
- `bake` command return error if account sprinkle is not included ([#944])
18+
19+
### Changed
20+
- Account sprinkle now extend the Core `BakeCommand` class to add the `create-admin` to the general bake command. Any sprinkle already extending the Core `BakeCommand` might need adjustments.
21+
- Updated custom Eloquent relations (`belongsToManyThrough`, `morphToManyUnique`, `belongsToManyUnique`, `morphToManyUnique`, etc.) to support Laravel 5.8. See [The `belongsToMany` Method](https://laravel.com/docs/5.5/upgrade#upgrade-5.5.0).
22+
23+
### Removed
24+
- Removed `belongsToManyConstrained` (deprecated in 4.1.6)
25+
26+
## [v4.2.3]
27+
28+
### Added
29+
- Config to set Domain of RememberMe Cookie ([#990]; [#991]; Thanks @xrobau!)
30+
- Config settings for password min/max length ([#993])
31+
32+
### Fixed
33+
- [PHPMailer] Turn off opportunistic TLS when disabled ([#986]; [#987])
34+
- Migrator now ignore files that don't end in `.php` ([#965]; Temporary fix for [#998])
35+
36+
## [v4.2.2]
37+
38+
### Added
39+
- New group factory (`'UserFrosting\Sprinkle\Account\Database\Models\Group'`)
40+
- New `withController` Trait, as an alternative for deprecated `ControllerTestCase`
41+
- StyleCI config
42+
- [Travis] SQLite in-memory DB testing
43+
- [Travis] enabled memcache & Redis service
44+
45+
### Fixed
46+
- DefaultPermissions seed results in SQL errors ([#981]; [#983])
47+
- Make group & role schema consistent between creation and edition. Prevents group and role without a name or slug to be created during edition.
48+
- Factories changed to make sure slugs are unique
49+
- Fix `WithTestUser` Trait returning a user with id of zero or reserve master id when a non-master user was asked. If master user already exist, will return it instead of trying to create a new one (with the same id)
50+
- Force close db connection on test `tearDown` procedure
51+
52+
### Changed
53+
- Recommended PHP version is now 7.2, as 7.1 will be EOL in less than 6 months
54+
- Added tests coverage for all build-in controllers
55+
- Applied styling rules from StyleCI & updated php-cs-fixer rules to match StyleCI config
56+
57+
### Deprecated
58+
- `ControllerTestCase`. Use `withController` Trait instead.
59+
60+
861
## [v4.2.1]
962

1063
### Added
@@ -730,7 +783,18 @@ See [http://learn.userfrosting.com/upgrading/40-to-41](Upgrading 4.0.x to 4.1.x
730783
[#953]: https://github.com/userfrosting/UserFrosting/issues/953
731784
[#958]: https://github.com/userfrosting/UserFrosting/issues/958
732785
[#963]: https://github.com/userfrosting/UserFrosting/issues/963
786+
[#965]: https://github.com/userfrosting/UserFrosting/issues/965
733787
[#968]: https://github.com/userfrosting/UserFrosting/issues/968
788+
[#981]: https://github.com/userfrosting/UserFrosting/issues/981
789+
[#983]: https://github.com/userfrosting/UserFrosting/issues/983
790+
[#986]: https://github.com/userfrosting/UserFrosting/issues/986
791+
[#987]: https://github.com/userfrosting/UserFrosting/issues/987
792+
[#990]: https://github.com/userfrosting/UserFrosting/issues/990
793+
[#991]: https://github.com/userfrosting/UserFrosting/issues/991
794+
[#993]: https://github.com/userfrosting/UserFrosting/issues/993
795+
[#998]: https://github.com/userfrosting/UserFrosting/issues/998
734796

735797
[v4.2.0]: https://github.com/userfrosting/UserFrosting/compare/v4.1.22...v4.2.0
736-
[v4.2.1]: https://github.com/userfrosting/UserFrosting/compare/v4.2.0...v4.2.1
798+
[v4.2.1]: https://github.com/userfrosting/UserFrosting/compare/v4.2.0...v.4.2.1
799+
[v4.2.2]: https://github.com/userfrosting/UserFrosting/compare/v.4.2.1...v4.2.2
800+
[v4.2.3]: https://github.com/userfrosting/UserFrosting/compare/v4.2.2...v4.2.3

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
# UserFrosting 4.2
22

33
[![Latest Version](https://img.shields.io/github/release/userfrosting/UserFrosting.svg)](https://github.com/userfrosting/UserFrosting/releases)
4+
![PHP Version](https://img.shields.io/packagist/php-v/userfrosting/userfrosting.svg?color=brightgreen)
45
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE.md)
56
[![Join the chat at https://chat.userfrosting.com/channel/support](https://demo.rocket.chat/images/join-chat.svg)](https://chat.userfrosting.com/channel/support)
67
[![Backers on Open Collective](https://opencollective.com/userfrosting/backers/badge.svg)](#backers)
78
[![Sponsors on Open Collective](https://opencollective.com/userfrosting/sponsors/badge.svg)](#sponsors)
89
[![Donate](https://img.shields.io/badge/Open%20Collective-Donate-blue.svg)](https://opencollective.com/userfrosting#backer)
910

10-
| Branch | Status |
11-
| ------ | ------ |
12-
| master | [![Build Status](https://travis-ci.org/userfrosting/UserFrosting.svg?branch=master)](https://travis-ci.org/userfrosting/UserFrosting) [![codecov](https://codecov.io/gh/userfrosting/userfrosting/branch/master/graph/badge.svg)](https://codecov.io/gh/userfrosting/userfrosting/branch/master) |
13-
| develop | [![Build Status](https://travis-ci.org/userfrosting/UserFrosting.svg?branch=develop)](https://travis-ci.org/userfrosting/UserFrosting) [![codecov](https://codecov.io/gh/userfrosting/userfrosting/branch/develop/graph/badge.svg)](https://codecov.io/gh/userfrosting/userfrosting/branch/develop) |
11+
| Branch | Version | Build | Coverage | Style |
12+
| ------ |:-------:|:-----:|:--------:|:-----:|
13+
| [master] | ![](https://img.shields.io/github/release/userfrosting/userfrosting.svg?color=success&label=Version) | [![](https://travis-ci.org/userfrosting/UserFrosting.svg?branch=master)][UF-Travis] | [![](https://codecov.io/gh/userfrosting/userfrosting/branch/master/graph/badge.svg)][UF-Codecov] | [![][style-master]][style] |
14+
| [hotfix] | ![](https://img.shields.io/badge/Version-v4.2.x-yellow.svg) | [![](https://travis-ci.org/userfrosting/UserFrosting.svg?branch=hotfix)][UF-Travis] | [![](https://codecov.io/gh/userfrosting/userfrosting/branch/hotfix/graph/badge.svg)][UF-Codecov] | [![][style-hotfix]][style] |
15+
| [develop] | ![](https://img.shields.io/badge/Version-v4.3.x-orange.svg) | [![](https://travis-ci.org/userfrosting/UserFrosting.svg?branch=develop)][UF-Travis] | [![](https://codecov.io/gh/userfrosting/userfrosting/branch/develop/graph/badge.svg)][UF-Codecov] | [![][style-develop]][style] |
16+
17+
<!-- Links -->
18+
[master]: https://github.com/userfrosting/UserFrosting
19+
[hotfix]: https://github.com/userfrosting/UserFrosting/tree/hotfix
20+
[develop]: https://github.com/userfrosting/UserFrosting/tree/develop
21+
[UF-Travis]: https://travis-ci.org/userfrosting/UserFrosting
22+
[UF-Codecov]: https://codecov.io/gh/userfrosting/userfrosting
23+
[style-master]: https://github.styleci.io/repos/18148206/shield?branch=master&style=flat
24+
[style-hotfix]: https://github.styleci.io/repos/18148206/shield?branch=hotfix&style=flat
25+
[style-develop]: https://github.styleci.io/repos/18148206/shield?branch=develop&style=flat
26+
[style]: https://github.styleci.io/repos/18148206
1427

1528
[https://www.userfrosting.com](https://www.userfrosting.com)
1629

@@ -20,7 +33,7 @@ If you simply want to show that you like this project, or want to remember it fo
2033

2134
Copyright (c) 2019, free to use in personal and commercial software as per the [license](LICENSE.md).
2235

23-
UserFrosting is a secure, modern user management system written in PHP and built on top of the [Slim Microframework](http://www.slimframework.com/), [Twig](http://twig.sensiolabs.org/) templating engine, and [Eloquent](https://laravel.com/docs/5.4/eloquent#introduction) ORM.
36+
UserFrosting is a secure, modern user management system written in PHP and built on top of the [Slim Microframework](http://www.slimframework.com/), [Twig](http://twig.sensiolabs.org/) templating engine, and [Eloquent](https://laravel.com/docs/5.8/eloquent#introduction) ORM.
2437

2538
## Features
2639

app/defines.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
2-
/**
2+
3+
/*
34
* UserFrosting (http://www.userfrosting.com)
45
*
56
* @link https://github.com/userfrosting/UserFrosting
@@ -10,10 +11,10 @@
1011
namespace UserFrosting;
1112

1213
// Some standard defines
13-
define('UserFrosting\VERSION', '4.2.1');
14+
define('UserFrosting\VERSION', '4.3.0-dev');
1415
define('UserFrosting\DS', '/');
15-
define('UserFrosting\PHP_MIN_VERSION', '5.6');
16-
define('UserFrosting\PHP_RECOMMENDED_VERSION', '7.1');
16+
define('UserFrosting\PHP_MIN_VERSION', '7.1');
17+
define('UserFrosting\PHP_RECOMMENDED_VERSION', '7.2');
1718
define('UserFrosting\NODE_MIN_VERSION', 'v10.12.0');
1819
define('UserFrosting\NPM_MIN_VERSION', '6.0.0');
1920

app/sprinkles/account/composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
],
1414
"require": {
1515
"birke/rememberme" : "^2.0",
16-
"nikic/php-parser" : "^1",
17-
"php": ">=5.6"
16+
"nikic/php-parser" : "^1"
1817
},
1918
"autoload": {
2019
"psr-4": {

app/sprinkles/account/config/debug.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
2-
/**
2+
3+
/*
34
* UserFrosting (http://www.userfrosting.com)
45
*
56
* @link https://github.com/userfrosting/UserFrosting
@@ -12,6 +13,6 @@
1213
*/
1314
return [
1415
'debug' => [
15-
'auth' => true
16+
'auth' => true,
1617
],
1718
];

0 commit comments

Comments
 (0)