Skip to content

Commit 0e0d1d9

Browse files
Working on next version
1 parent ec580cd commit 0e0d1d9

19 files changed

+238
-179
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 104 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -2,75 +2,131 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
7-
our community a harassment-free experience for everyone, regardless of age, body
8-
size, disability, ethnicity, sex characteristics, gender identity and expression,
9-
level of experience, education, socio-economic status, nationality, personal
10-
appearance, race, religion, or sexual identity and orientation.
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
1114

1215
## Our Standards
1316

14-
Examples of behavior that contributes to creating a positive environment
15-
include:
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
1619

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
2227

23-
Examples of unacceptable behavior by participants include:
28+
Examples of unacceptable behavior include:
2429

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
2833
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
3136
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
37+
professional setting
3338

34-
## Our Responsibilities
39+
## Enforcement Responsibilities
3540

36-
Project maintainers are responsible for clarifying the standards of acceptable
37-
behavior and are expected to take appropriate and fair corrective action in
38-
response to any instances of unacceptable behavior.
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
3945

40-
Project maintainers have the right and responsibility to remove, edit, or
41-
reject comments, commits, code, wiki edits, issues, and other contributions
42-
that are not aligned to this Code of Conduct, or to ban temporarily or
43-
permanently any contributor for other behaviors that they deem inappropriate,
44-
threatening, offensive, or harmful.
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
4550

4651
## Scope
4752

48-
This Code of Conduct applies both within project spaces and in public spaces
49-
when an individual is representing the project or its community. Examples of
50-
representing a project or community include using an official project e-mail
51-
address, posting via an official social media account, or acting as an appointed
52-
representative at an online or offline event. Representation of a project may be
53-
further defined and clarified by project maintainers.
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
5458

5559
## Enforcement
5660

5761
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
61-
obligated to maintain confidentiality with regard to the reporter of an incident.
62-
Further details of specific enforcement policies may be posted separately.
62+
reported to the community leaders responsible for enforcement at
63+
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
6387

64-
Project maintainers who do not follow or enforce the Code of Conduct in good
65-
faith may face temporary or permanent repercussions as determined by other
66-
members of the project's leadership.
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
67114

68115
## Attribution
69116

70-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.1, available at
119+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
72120

73-
[homepage]: https://www.contributor-covenant.org
121+
Community Impact Guidelines were inspired by
122+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
74123

75-
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
124+
For answers to common questions about this code of conduct, see the FAQ at
125+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
126+
at [https://www.contributor-covenant.org/translations][translations].
127+
128+
[homepage]: https://www.contributor-covenant.org
129+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130+
[Mozilla CoC]: https://github.com/mozilla/diversity
131+
[FAQ]: https://www.contributor-covenant.org/faq
132+
[translations]: https://www.contributor-covenant.org/translations

.github/CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
Contributions are **welcome** and will be fully **credited**.
44

5-
We accept contributions via pull requests on Github. Please review these guidelines before continuing.
5+
We accept contributions via pull requests on GitHub. Please review these guidelines before continuing.
66

77
## Guidelines
88

9-
* Please follow the [PSR-2 Coding Style Guide](https://www.php-fig.org/psr/psr-2/), enforced by [StyleCI](https://styleci.io/).
9+
* Please follow the [PSR-12 Coding Style Guide](https://www.php-fig.org/psr/psr-12/), enforced by [StyleCI](https://styleci.io/).
1010
* Ensure that the current tests pass, and if you've added something new, add the tests where relevant.
11-
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful.
11+
* Send a coherent commit history, making sure each commit in your pull request is meaningful.
1212
* You may need to [rebase](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) to avoid merge conflicts.
13-
* If you are changing or adding to the behaviour or public api, you may need to update the docs.
14-
* Please remember that we follow [SemVer](https://semver.org/).
13+
* If you are changing or adding to the behaviour or public API, you may need to update the docs.
14+
* Please remember that we follow [Semantic Versioning](https://semver.org/).
1515

1616
## Running Tests
1717

@@ -28,4 +28,4 @@ $ vendor/bin/phpunit
2828
```
2929

3030
* The tests will be automatically run by [GitHub Actions](https://github.com/features/actions) against pull requests.
31-
* We also have [StyleCI](https://styleci.io/) setup to automatically fix any code style issues.
31+
* We also have [StyleCI](https://styleci.io/) set up to automatically fix any code style issues.

.github/SECURITY.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
## Supported Versions
44

55
After each new major release, the previous release will be supported for no
6-
less than 6 months, unless explictly stated otherwise. This may mean that there
7-
are multiple supported versions at any given time.
6+
less than 12 months, unless explictly stated otherwise. This may mean that
7+
there are multiple supported versions at any given time.
88

99
## Reporting a Vulnerability
1010

1111
If you discover a security vulnerability within this package, please send an
12-
email to Graham Campbell at graham@alt-three.com. All security vulnerabilities
13-
will be promptly addressed. Please do not disclose security-related issues
14-
publicly until a fix has been announced.
12+
email to security@tidelift.com. All security vulnerabilities will be promptly
13+
addressed. Please do not disclose security-related issues publicly until a fix
14+
has been announced.

.github/workflows/static.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,28 @@ on:
77
jobs:
88
phpstan:
99
name: PHPStan
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v2
14+
uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 7.4
19+
php-version: '7.4'
2020
tools: composer:v2
2121
coverage: none
2222

2323
- name: Install Dependencies
24-
uses: nick-invision/retry@v1
24+
uses: nick-invision/retry@v3
2525
with:
2626
timeout_minutes: 5
2727
max_attempts: 5
2828
command: composer update --no-interaction --no-progress
2929

3030
- name: Install PHPStan
31-
uses: nick-invision/retry@v1
31+
uses: nick-invision/retry@v3
3232
with:
3333
timeout_minutes: 5
3434
max_attempts: 5

.github/workflows/tests.yml

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,37 @@ on:
77
jobs:
88
tests:
99
name: PHP ${{ matrix.php }}; Symfony ${{ matrix.symfony }}
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-22.04
1111

1212
strategy:
1313
matrix:
14-
php: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1']
15-
symfony: ['3', '4', '5', '6']
14+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
15+
symfony: ['4', '5', '6', '7']
1616
exclude:
17-
- php: '7.0'
18-
symfony: '4'
19-
- php: '7.0'
20-
symfony: '5'
21-
- php: '7.0'
22-
symfony: '6'
23-
- php: '7.1'
24-
symfony: '5'
25-
- php: '7.1'
26-
symfony: '6'
2717
- php: '7.2'
2818
symfony: '6'
19+
- php: '7.2'
20+
symfony: '7'
2921
- php: '7.3'
3022
symfony: '6'
23+
- php: '7.3'
24+
symfony: '7'
3125
- php: '7.4'
3226
symfony: '6'
27+
- php: '7.4'
28+
symfony: '7'
29+
- php: '8.0'
30+
symfony: '7'
3331
- php: '8.1'
34-
symfony: '3'
32+
symfony: '7'
33+
- php: '8.3'
34+
symfony: '4'
35+
- php: '8.4'
36+
symfony: '4'
3537

3638
steps:
3739
- name: Checkout Code
38-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
3941

4042
- name: Setup PHP
4143
uses: shivammathur/setup-php@v2
@@ -47,44 +49,40 @@ jobs:
4749
- name: Setup Problem Matchers
4850
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4951

50-
- name: Mimic PHP 8.0
51-
run: composer config platform.php 8.0.999
52-
if: matrix.php > 8
53-
54-
- name: Select Symfony 3
55-
uses: nick-invision/retry@v1
56-
with:
57-
timeout_minutes: 5
58-
max_attempts: 5
59-
command: composer require "symfony/process:^3.4" --no-update --no-interaction
60-
if: "matrix.symfony == '3'"
61-
6252
- name: Select Symfony 4
63-
uses: nick-invision/retry@v1
53+
uses: nick-invision/retry@v3
6454
with:
6555
timeout_minutes: 5
6656
max_attempts: 5
67-
command: composer require "symfony/process:^4.4" --no-update --no-interaction
57+
command: composer require "symfony/console:^4.4" --no-update --no-interaction
6858
if: "matrix.symfony == '4'"
6959

7060
- name: Select Symfony 5
71-
uses: nick-invision/retry@v1
61+
uses: nick-invision/retry@v3
7262
with:
7363
timeout_minutes: 5
7464
max_attempts: 5
75-
command: composer require "symfony/process:^5.3" --no-update --no-interaction
65+
command: composer require "symfony/console:^5.4" --no-update --no-interaction
7666
if: "matrix.symfony == '5'"
7767

7868
- name: Select Symfony 6
79-
uses: nick-invision/retry@v1
69+
uses: nick-invision/retry@v3
8070
with:
8171
timeout_minutes: 5
8272
max_attempts: 5
83-
command: composer require "symfony/process:^6.0" --no-update --no-interaction
73+
command: composer require "symfony/console:^6.4" --no-update --no-interaction
8474
if: "matrix.symfony == '6'"
8575

76+
- name: Select Symfony 7
77+
uses: nick-invision/retry@v3
78+
with:
79+
timeout_minutes: 5
80+
max_attempts: 5
81+
command: composer require "symfony/console:^7.0" --no-update --no-interaction
82+
if: "matrix.symfony == '7'"
83+
8684
- name: Install PHP Dependencies
87-
uses: nick-invision/retry@v1
85+
uses: nick-invision/retry@v3
8886
with:
8987
timeout_minutes: 5
9088
max_attempts: 5

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014-2020 Graham Campbell <[email protected]>
3+
Copyright (c) 2014-2025 Graham Campbell <[email protected]>
44
Copyright (c) 2013-2014 Michael Dowling <[email protected]>
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is the console component. Please see https://github.com/ClassPreloader/Clas
99
Security
1010
--------
1111

12-
If you discover a security vulnerability within this package, please send an email to Graham Campbell at graham@alt-three.com. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/ClassPreloader/Console/security/policy).
12+
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/ClassPreloader/Console/security/policy).
1313

1414
License
1515
-------

bin/classpreloader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/*
55
* This file is part of Class Preloader.
66
*
7-
* (c) Graham Campbell <[email protected]>
7+
* (c) Graham Campbell <[email protected]>
88
* (c) Michael Dowling <[email protected]>
99
*
1010
* For the full copyright and license information, please view the LICENSE

0 commit comments

Comments
 (0)