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

Implement URI generation for named routes #277

Merged
merged 10 commits into from
Mar 4, 2024
Merged

Commits on Feb 13, 2024

  1. Update dependencies

    Lock file operations: 0 installs, 2 updates, 0 removals
      - Upgrading phpstan/phpstan (1.10.57 => 1.10.58)
      - Upgrading seld/jsonlint (1.10.1 => 1.10.2)
    
    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    03e56c1 View commit details
    Browse the repository at this point in the history
  2. Extract array shape definition as type

    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    a13b4cd View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2024

  1. Move cache key configuration away from dispatcher creation

    This allows us to reuse that parameters to introduce the URI generation
    component.
    
    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    61d291f View commit details
    Browse the repository at this point in the history
  2. Provide marker interface for all exceptions

    This allows users to easily handle exceptions coming from this library.
    
    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    2335aa2 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2024

  1. Implement component to generate URIs from named routes

    This introduces the ability to create URIs from the configured routes,
    following the same semantics of route dispatching when it comes to URL
    encoding (it needs to be handled by the user of the library).
    
    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    c7877ee View commit details
    Browse the repository at this point in the history
  2. Defined reserved extra parameters

    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    cc03f4e View commit details
    Browse the repository at this point in the history
  3. Decouple processed routes from data generator

    This allows them to evolve separately.
    
    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    c27ead2 View commit details
    Browse the repository at this point in the history
  4. Disallow empty strings as cache keys

    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    28698b2 View commit details
    Browse the repository at this point in the history
  5. Integrate named routes into route processing

    This enables the retrieval of named routes and URI generation from the
    main library configuration.
    
    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    e24b7c8 View commit details
    Browse the repository at this point in the history
  6. Benchmark route generation

    Signed-off-by: Luís Cobucci <[email protected]>
    lcobucci committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    0849622 View commit details
    Browse the repository at this point in the history