Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Document Expressive Skeleton 2 changes #456

Closed
wants to merge 17 commits into from
Closed

Document Expressive Skeleton 2 changes #456

wants to merge 17 commits into from

Conversation

geerteltink
Copy link
Member

@geerteltink geerteltink commented Feb 23, 2017

Create new tutorials based on new skeleton, and mark old tutorials as deprecated.

  • Security advisories
  • Development mode
  • composer check
  • composer clear-config-cache
  • zend-component-installer
  • zend-config-aggregator / ConfigProvider
  • pipeline.php
  • routes.php
  • expressive-module tool
    • in getting-started guide

weierophinney and others added 3 commits February 22, 2017 16:02
Because `Zend\Expressive\Router\Route` is lenient in the middleware it
composes, we cannot assume that the middleware composed is valid
http-interop middleware in the dispatcher. As such, this patch does the
following:

- Updates `DispatchMiddleware` to compose a router, response prototype,
  and container, as all are necessary for preparing interop middleware
  shims.
- Updates `DispatchMiddleware::process` to check if the middleware
  received is http-interop compatible; if not, it delegates to
  `MarshalMiddlewareTrait::prepareMiddleware()` to cast it to interop
  middleware.
@geerteltink geerteltink changed the title [DOCS] Add Expressive Skeleton 2 changes Document Expressive Skeleton 2 changes Feb 23, 2017
@geerteltink geerteltink added this to the 2.0.0 milestone Feb 23, 2017
> to a full day:
>
> ```bash
> $ COMPOSER_PROCESS_TIMEOUT=86400 composer serve
Copy link
Contributor

Choose a reason for hiding this comment

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

it can be registered to ~/.composer/config.json that can be set by run command

composer config -g process-timeout 86400

So, no need to re-define it again.

Copy link
Member Author

Choose a reason for hiding this comment

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

First time I read your comment I wanted to reply and say I wouldn't want to advise setting it in the config. But now that I read it again, you set it in the global config, which affects only your local dev environment. I actually like this a lot more than other solutions and I think it's cleaner.

However I think 1 day is a lot. What do you think, lower it to a few hours? You need a break once in a while any way.

Copy link
Contributor

Choose a reason for hiding this comment

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

8 hours? ( usual a day work hours )

weierophinney and others added 14 commits March 1, 2017 11:26
Put preferred versions first in `||` constraints
To ensure the latest is selected first. This ensures that Composer
does not need to do extra work if the first constraint matches, and is
newer than the latter constraint.
Updated dependencies and travis configuration
Document Expressive Skeleton 2 changes
- Added more verbiage around setting composer timeouts, as you can also
  set them per-project instead of globally.
- Added a section on the `expressive-module` tool, which will soon be
  included by default when selecting modular layouts.
- Added a section on double-pass vs single-pass middleware, and why
  double-pass is now legacy.
@weierophinney
Copy link
Member

@xtreamwayz I've pushed some edits and additions for you. 😄

weierophinney added a commit to weierophinney/zend-expressive that referenced this pull request Mar 6, 2017
- Added more verbiage around setting composer timeouts, as you can also
  set them per-project instead of globally.
- Added a section on the `expressive-module` tool, which will soon be
  included by default when selecting modular layouts.
- Added a section on double-pass vs single-pass middleware, and why
  double-pass is now legacy.
@weierophinney weierophinney mentioned this pull request Mar 6, 2017
15 tasks
weierophinney added a commit that referenced this pull request Mar 6, 2017
Close #460
Close #456

Finishes out Expressive 2.0 documentation tasks
@weierophinney
Copy link
Member

Closed via #460

@geerteltink geerteltink deleted the develop branch March 7, 2017 15:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants