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

Serve static files #346

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Serve static files #346

wants to merge 14 commits into from

Commits on May 15, 2020

  1. #343 - Move redirect handling to new redirector event subscriber

    This allows pages to be to redirect any url, anywhere, even when not
    in a page context.
    johanjanssens committed May 15, 2020
    Configuration menu
    Copy the full SHA
    3a07312 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b7548b8 View commit details
    Browse the repository at this point in the history
  3. #343 - Add a new 'routers' config option to allow to register routers

    identifiers by a custom scheme and rename 'pages' scheme to 'page'
    johanjanssens committed May 15, 2020
    Configuration menu
    Copy the full SHA
    93a1074 View commit details
    Browse the repository at this point in the history
  4. #343 - Add support for callback route targets

    The callback is defined is as follows: 'function($route, $generate = false)'
    
    - $route: a ComPagesDispatcherRouteRouteInterface object
    - $generate: are we generating a url or resolving (default false)
    
    Callbacks are both supported for static and dynamic routes, in case of a
    dynamic route the callback is called only if the route could be succesfully
    resolved.
    johanjanssens committed May 15, 2020
    Configuration menu
    Copy the full SHA
    13e4f5f View commit details
    Browse the repository at this point in the history

Commits on May 16, 2020

  1. #343 - Implement separate named callbacks for 'resolve' and 'generate'

    Example:
    
    '/path/to/page' => [
    	'generate' => function($route)
    	{
    		return true;
    	},
    	'resolve' => function($route)
    	{
    		return true;
    	}
    ],
    johanjanssens committed May 16, 2020
    Configuration menu
    Copy the full SHA
    e637b59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9cfc9eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2aecc32 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    690e7e3 View commit details
    Browse the repository at this point in the history
  5. #345 - Implement specialised file route

    A file route is absolute if the path of the route is a fully qualified file path
    johanjanssens committed May 16, 2020
    Configuration menu
    Copy the full SHA
    8b0d487 View commit details
    Browse the repository at this point in the history
  6. #345 - Add support for force downloading files

    Add support for the 'force-download' query parameter. If specified the
    file will be downloaded instead of allowing the browser to preview the
    file if it can do so.
    
    For example:
    
    'files/[:name]' => '/files/documents/[:name].pdf?force-download'
    johanjanssens committed May 16, 2020
    Configuration menu
    Copy the full SHA
    10514ab View commit details
    Browse the repository at this point in the history

Commits on May 17, 2020

  1. #345 - Add a transport query parameter

    The `transport`query parameter allows to define which transport. At the
    moment two additional transports are supported: `stream` and `sendfile
    johanjanssens committed May 17, 2020
    Configuration menu
    Copy the full SHA
    e64cdfd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e6d33e View commit details
    Browse the repository at this point in the history

Commits on May 18, 2020

  1. #345 - Rename downloader to filedownloader and add support for

    cache query parameter
    
    The cache query parameter allows to define the max-age in
    seconds.
    johanjanssens committed May 18, 2020
    Configuration menu
    Copy the full SHA
    9fbf354 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    471b82a View commit details
    Browse the repository at this point in the history