Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Use psr-4 #43

Merged
merged 5 commits into from
Apr 19, 2018
Merged

Use psr-4 #43

merged 5 commits into from
Apr 19, 2018

Conversation

btry
Copy link
Collaborator

@btry btry commented Apr 18, 2018

One file per class.

Reference: #8

@btry btry self-assigned this Apr 18, 2018
@btry btry requested a review from DIOHz0r April 18, 2018 09:05
@ajsb85 ajsb85 self-requested a review April 18, 2018 09:26
@ajsb85 ajsb85 added this to the 3.0 milestone Apr 18, 2018
@btry btry changed the title Use psr-4 WIP Use psr-4 Apr 18, 2018
@btry
Copy link
Collaborator Author

btry commented Apr 18, 2018

Hi @rodneyrehm and @ckruse

In this PR I'm splitting the code to have one file per class. In the same time I'm updating the headers in each file.

I wish you review the headers to ensure I don't miss any important information related to the history of the project. I want to keep credits to all main contributors. Please read the following commit, and feedback.

612d138

@btry btry mentioned this pull request Apr 18, 2018
@btry
Copy link
Collaborator Author

btry commented Apr 18, 2018

@ajsb85 @DIOHz0r please review the headers too while waiting for feedback from previous maintainers

* ------------------------------------------------------------------------------
* @author Rodney Rehm <rodney.rehm@medialize.de>
* @author Christian Kruse <cjk@wwwtech.de>
* @author Thierry Bugier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't you going to add your email?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I choosed to not put my email.

One can contact me with the bug tracker of the repo (currently github) or via the company I work for. I like dark themes, I fear spam and groupies (if this exists for developers...) :D

https://github.com/flyve-mdm/glpi-plugin/blob/develop/inc/agent.class.php#L24

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btry You can add the email of teclib contact@teclib.com

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using this email address disturbs me: it is not intended to receive messages related to development. You won, I'll disclose my email ! I'll forward spam to you ;)

* SOFTWARE.
*
* ------------------------------------------------------------------------------
* @copyright Copyright © 2018 Teclib
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No authors here?

Copy link
Collaborator Author

@btry btry Apr 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only have a pseudonym from git blame. However I choosed to add a pseudonym for an other file, then I'll add it here too.

@rodneyrehm
Copy link
Contributor

LGTM :)

@btry
Copy link
Collaborator Author

btry commented Apr 19, 2018

Thank you all for your feedback. I'll merge asap and continue work. Switch to PSR-4 is a BC.

This is the opportunity to change the name of the package (see #27).

@btry btry force-pushed the feature/refactor_psr4 branch 6 times, most recently from b1a4684 to b410467 Compare April 19, 2018 15:00
@btry btry changed the base branch from master to develop April 19, 2018 15:05
@btry btry mentioned this pull request Apr 19, 2018
BREAKING CHANGE: switching to PSR-4 may impact the way to load the library

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
fix TECLIB#27

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
composer.json Outdated
@@ -3,10 +3,10 @@
"description": "Library for reading and writing Apple's CFPropertyList (plist) files in XML as well as binary format.",
"keywords": ["plist"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core Foundation, CFPropertyList, plist, apple, xml, binary

composer.json Outdated
"name": "Thierry Bugier",
"email": "tbugier@teclib.com"
}
],
"support": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"irc": "irc://irc.freenode.org/flyve-mdm",
"email": "contact@teclib.com",
"docs": "http://teclib.github.io/CFPropertyList/",
"rss": "https://teclib.github.io/CFPropertyList/feed.xml"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done ,except irc, as we discussed

composer.json Outdated
},
{
"name": "Thierry Bugier",
"email": "tbugier@teclib.com"
Copy link
Contributor

@ajsb85 ajsb85 Apr 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"role": "developer"

composer.json Outdated
@@ -16,15 +16,19 @@
{
"name": "Rodney Rehm",
"email": "mail+github@rodneyrehm.de"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"role": "developer"

composer.json Outdated
@@ -1,30 +1,40 @@
{
"name": "rodneyrehm/plist",
"description": "Library for reading and writing Apple's CFPropertyList (plist) files in XML as well as binary format.",
"keywords": ["plist"],
"keywords": ["Core Fouondation", "CFPropertyList", "plist", "apple", "xml", "binary"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core Foundation*

composer.json Outdated
"issues": "https://github.com/TECLIB/CFPropertyList/issues",
"source": "https://github.com/TECLIB/CFPropertyList",
"email": "contact@teclib.com",
"docs": "http://teclib.github.io/CFPropertyList/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

composer.json Outdated
"type": "library",
"homepage": "https://github.com/rodneyrehm/CFPropertyList",
"homepage": "https://github.com/TECLIB/CFPropertyList",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btry btry force-pushed the feature/refactor_psr4 branch 2 times, most recently from 35abfce to fd800d1 Compare April 19, 2018 20:07
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
@btry btry requested a review from ajsb85 April 19, 2018 20:09
@ajsb85 ajsb85 merged commit e9f6d67 into TECLIB:develop Apr 19, 2018
@btry btry changed the title WIP Use psr-4 Use psr-4 Apr 19, 2018
@btry btry deleted the feature/refactor_psr4 branch April 20, 2018 12:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants