Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update repository #3

Merged
merged 13 commits into from
Apr 2, 2018
Merged

Update repository #3

merged 13 commits into from
Apr 2, 2018

Conversation

XedinUnknown
Copy link
Member

@XedinUnknown XedinUnknown commented Apr 1, 2018

  • Converted to Dhii standards.
  • Added factories for both EventInterface and EventManagerInterface.
  • EventManagerInterface no longer extends PSR interface, and is strict, yet forward-compatible.
  • Tests added.
  • BC broken.

Fixes #3.
Fixes #2.
Fixes #1.

This is necessary for event and manager factories
- Documentation corrected.
- `trigger()` now accepts only one argument - the event instance.
- Forward compatibility maintained, i.e. an implementation of the
PSR event manager can implement the Dhii manager interface.
@XedinUnknown XedinUnknown added this to the 0.2 milestone Apr 1, 2018
@XedinUnknown XedinUnknown self-assigned this Apr 1, 2018
@XedinUnknown XedinUnknown requested a review from mecha April 1, 2018 17:02
Copy link
Member

@mecha mecha left a comment

Choose a reason for hiding this comment

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

Looks good. Just missing the tests for the factory interfaces.

</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="5.3.0" />
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings load_method="CUSTOM_LOADER" configuration_file_path="F:/projects/dhii/psr-14/phpunit.xml" custom_loader_path="F:/projects/dhii/psr-14/vendor/autoload.php" phpunit_phar_path="" use_configuration_file="true" />
<PhpUnitSettings load_method="CUSTOM_LOADER" custom_loader_path="F:/projects/dhii/event-interface/vendor/autoload.php" phpunit_phar_path="" />
Copy link
Member

Choose a reason for hiding this comment

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

Why is it that this config entry never uses the $PROJECT_DIR$ variable for you?

Copy link
Member Author

Choose a reason for hiding this comment

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

Mystery. Does it for you?

Copy link
Member

@mecha mecha Apr 2, 2018

Choose a reason for hiding this comment

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

Yes. In fact when I clone projects that have paths like this, after changing the beginning of the path from F:\projects to my D:\dev, PHPS automatically changes it to $PROJECT_DIR$.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would love my configs to do that. But they don't. Do you remember what it was like before the PHPS update?

Copy link
Member

Choose a reason for hiding this comment

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

No. Would have to go look at some projects that I had created at the time.

@XedinUnknown XedinUnknown requested a review from mecha April 2, 2018 10:52
@XedinUnknown XedinUnknown merged commit 641a5b4 into develop Apr 2, 2018
@XedinUnknown XedinUnknown deleted the task/2_update-repository branch April 2, 2018 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants