-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Fluid interface for building routes in PHP #15778
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
51f60fc
Adding a new framework-specific Route class
weaverryan 6891ec8
Adding a class to make adding/importing routes easier and more fluid
weaverryan 4e430a0
Maintaining all the RouteCollection abilities to RouteCollectionBuilder
weaverryan 0ddadc5
Moving the prefix to the builder, so that it's consistent with other …
weaverryan 06ea900
Adding phpdoc
weaverryan 6b922a6
Using InvalidArgumentException
weaverryan 14518ed
No change - renaming variable
weaverryan 7972fc9
Adding many more tests, which included a few small bug fixes with val…
8000
weaverryan e11b7e0
Removed prefix argument from mount() - and added it instead to create…
weaverryan 4d90916
fabbot!
weaverryan 729ccbb
Renaming flush() to build()
weaverryan e509953
Not clearing everything on build - unnecessary, and the RouteCollecti…
weaverryan 01e1329
Fixing phpdoc
weaverryan e39e0c4
Removing the FrameworkBundle Route and the ability to call Route::set…
weaverryan df1849f
Simplifying by transforming RouteCollection's into RouteCollectionBui…
weaverryan 97b1eea
Fixing a bug with knowing which keys should be auto-generated
weaverryan e1ecde4
Minor code improvement to centralize things
weaverryan ecf4346
Renaming methods for clarity and consistency
weaverryan 0dce55d
fabbot and possible test fixes
weaverryan f3d71ad
Allowing LoaderInterface instead of Loader
weaverryan 8132fcb
Updating setRequirements to avoid deprecated calls
weaverryan b2676ec
phpdoc typo
weaverryan bf6790b
Making RouteCollectionBuilder's LoaderInteface optional
weaverryan 61e4bf7
removing extra spaces
weaverryan 8f0b956
moving into the component
weaverryan fbab6d4
Removing the ability to set a prefix on a builder: that only happens …
weaverryan 012cb92
Removing the prefix from import, and making the user actually put tha…
weaverryan 33255dd
Fixing a bug with route name collission because the prefix wasn't acc…
weaverryan 356b114
Refactoring into private method
weaverryan 7cb8996
fabbot
weaverryan 573a7f1
Small tweaks suggested by fabpot, including removal of addResource(),…
weaverryan 83f3194
stretching out logic into multiple lines: there's some discussion abo…
weaverryan 26d656b
Fabbot
weaverryan 42e73a2
Adding throws
weaverryan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Small tweaks suggested by fabpot, including removal of addResource(),…
… as it probably should not be needed by the end user
- Loading branch information
commit 573a7f149aa2f214c830fb02a313d5f726ed2946
There are no files selected for viewing
This file contains hidden or 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 contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ArrayCollection?