-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from tattersoftware/v3
Refactor
- Loading branch information
Showing
29 changed files
with
544 additions
and
924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Upgrade Guide | ||
|
||
## Version 2 to 3 | ||
*** | ||
|
||
Version 3 focuses on simplifying the code and making each class align more logically with what it does. | ||
|
||
* `Handlers` has been refactored into `BaseManager`; read more below | ||
* Related, the following have been removed: Handlers service, helper file, and command files | ||
* The `$attributes` property and accessor methods have been replaced by a single static method: `attributes()` | ||
* Identification of handlers is now handled via the static method `handlerId()` instead of the "name" or "uid" attributes, or the class itself | ||
|
||
### `BaseManager` | ||
|
||
`Handlers` is no longer a library with service and helper. The core of this library is now | ||
centered around an abstract class `BaseManager` with the same discovery and lookup methods | ||
that were previously on `Handlers`. Other libraries needing handler discovery should extend | ||
this class and provide the required `getPath(): string` method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.