# \#expressive

**URL:** https://discourse.laminas.dev/tag/expressive/4.md?match_all_tags=true&page=2&tags%5B%5D=expressive

[Latest](https://discourse.laminas.dev/latest.md) · [Categories](https://discourse.laminas.dev/categories.md) · [Tags](https://discourse.laminas.dev/tags.md)

**Page:** 3

---

## [How to inject custom php classes into zend directory](https://discourse.laminas.dev/t/how-to-inject-custom-php-classes-into-zend-directory/368)

<div class="topic-metadata">

**Author:** [@erfan](https://discourse.laminas.dev/u/erfan)\
**Replies:** 4\
**Last updated:** [November 16, 2017, 9:03pm UTC](https://discourse.laminas.dev/t/how-to-inject-custom-php-classes-into-zend-directory/368 "2017-11-16T21:03:59Z")

</div>

hi. does anyone know how to insert custom php classes into zend framework 3 modular structure?!

---

## [How to use Expressive when I want a value in the Session to be available at object creation time?](https://discourse.laminas.dev/t/how-to-use-expressive-when-i-want-a-value-in-the-session-to-be-available-at-object-creation-time/361)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 2\
**Last updated:** [November 9, 2017, 5:01am UTC](https://discourse.laminas.dev/t/how-to-use-expressive-when-i-want-a-value-in-the-session-to-be-available-at-object-creation-time/361 "2017-11-09T05:01:17Z")

</div>

I have a use case where I need to have access to a quote\_id for a fairly large number of Middleware actions. I have a set of entities such as Quote, Order, and others, that interact with the database via a repository la…

---

## [Expressive's relation to the MVC pattern](https://discourse.laminas.dev/t/expressives-relation-to-the-mvc-pattern/353)

<div class="topic-metadata">

**Author:** [@adamturcsan](https://discourse.laminas.dev/u/adamturcsan)\
**Replies:** 7\
**Last updated:** [November 5, 2017, 9:56pm UTC](https://discourse.laminas.dev/t/expressives-relation-to-the-mvc-pattern/353 "2017-11-05T21:56:47Z")

</div>

Soon I’ll have a talk on a local (Budapest, Hungary) meetup with the title Re-thinking the MVC pattern with PHP frameworks (in Hungarian: Gondoljuk újra az MVC-t (PHP frameworkökkel)! ). I’ll walk through some framewor…

---

## [How do you handle routing config, when URL string between your Dev and Prod environments is different?](https://discourse.laminas.dev/t/how-do-you-handle-routing-config-when-url-string-between-your-dev-and-prod-environments-is-different/283)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 1\
**Last updated:** [September 14, 2017, 9:16pm UTC](https://discourse.laminas.dev/t/how-do-you-handle-routing-config-when-url-string-between-your-dev-and-prod-environments-is-different/283 "2017-09-14T21:16:33Z")

</div>

Supopse that you have different URL string in DEV and PROD. i.e.: in DEV your URL scheme is like so: https://domain/action in PROD your URL is like so: https://domain/extra\_path/action How can you work that in you…

---

## [How can I make Expressive direct errors into apache's error\_log?](https://discourse.laminas.dev/t/how-can-i-make-expressive-direct-errors-into-apaches-error-log/338)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 4\
**Last updated:** [October 27, 2017, 5:39pm UTC](https://discourse.laminas.dev/t/how-can-i-make-expressive-direct-errors-into-apaches-error-log/338 "2017-10-27T17:39:49Z")

</div>

When I run across an error in Expressive, I often see a blank screen. For example I had a recent bug where only the partial header was rendered, nothing further was shown on the screen. Apache logs did not show anythin…

---

## [How can I integerate relative URL structure to work with absolute routing in Expressive?](https://discourse.laminas.dev/t/how-can-i-integerate-relative-url-structure-to-work-with-absolute-routing-in-expressive/341)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 0\
**Last updated:** [October 27, 2017, 4:45pm UTC](https://discourse.laminas.dev/t/how-can-i-integerate-relative-url-structure-to-work-with-absolute-routing-in-expressive/341 "2017-10-27T16:45:36Z")

</div>

I am trying to integrate absolute routing model with an existing website that uses relative URLs. By absolute I mean a URL like /path/action/params/, note the slash in the front. And by relative I mean a URL like contr…

---

## [Session injection via constructor](https://discourse.laminas.dev/t/session-injection-via-constructor/319)

<div class="topic-metadata">

**Author:** [@harikt](https://discourse.laminas.dev/u/harikt)\
**Replies:** 6\
**Last updated:** [October 16, 2017, 3:47pm UTC](https://discourse.laminas.dev/t/session-injection-via-constructor/319 "2017-10-16T15:47:48Z")

</div>

Hi all, I am not a big fan of retrieving dependencies via Request attributes. I believe dependencies should be explicit. So the big picture : I have pet project called web.expressive which tries to integrate the dms w…

---

## [Does Zend Expressive work with Zend Form/Zend Filter?](https://discourse.laminas.dev/t/does-zend-expressive-work-with-zend-form-zend-filter/292)

<div class="topic-metadata">

**Author:** [@frankx](https://discourse.laminas.dev/u/frankx)\
**Replies:** 1\
**Last updated:** [September 19, 2017, 3:47pm UTC](https://discourse.laminas.dev/t/does-zend-expressive-work-with-zend-form-zend-filter/292 "2017-09-19T15:47:03Z")

</div>

I bought @RalfEggert s Book on ZF3 (in German) and red a little about Zend Expressive. For a small project (collection of “people” lets say, artists, with single-artist pages, overviews and upload-forms -databased) inclu…

---

## [How to use DRY on identical code inside several factories?](https://discourse.laminas.dev/t/how-to-use-dry-on-identical-code-inside-several-factories/266)

<div class="topic-metadata">

**Author:** [@dennis-fedco](https://discourse.laminas.dev/u/dennis-fedco)\
**Replies:** 1\
**Last updated:** [September 7, 2017, 3:35pm UTC](https://discourse.laminas.dev/t/how-to-use-dry-on-identical-code-inside-several-factories/266 "2017-09-07T15:35:58Z")

</div>

I have several factories, each of which uses the same initialization code for a $quote\_id. Code here Imagine I have several factories like the above, and each of them contains the same lines for $quote\_id. Is there a …

---

## [Zend-Expressive and Plates](https://discourse.laminas.dev/t/zend-expressive-and-plates/260)

<div class="topic-metadata">

**Author:** [@lowtower](https://discourse.laminas.dev/u/lowtower)\
**Replies:** 3\
**Last updated:** [August 24, 2017, 7:46am UTC](https://discourse.laminas.dev/t/zend-expressive-and-plates/260 "2017-08-24T07:46:00Z")

</div>

In the zend-expressive-skeleton, the template engine plates is the default. Unfortunately no tutorials or how-tos exist in the wild. How is it possible to enable plates extensions in zend-expressive, such as the uri-ex…

---

## [Folder structure for Expressive modules](https://discourse.laminas.dev/t/folder-structure-for-expressive-modules/153)

<div class="topic-metadata">

**Author:** [@enrico](https://discourse.laminas.dev/u/enrico)\
**Replies:** 17\
**Last updated:** [August 23, 2017, 6:43pm UTC](https://discourse.laminas.dev/t/folder-structure-for-expressive-modules/153 "2017-08-23T18:43:22Z")

</div>

I would like to open a discussion about a possible folder structure for an Expressive module. I'm working with some prototypes and I've got some different ideas. The goal is to design a simple folder structure that is re…

---

## [Best approach to add infrastructure class to other classes](https://discourse.laminas.dev/t/best-approach-to-add-infrastructure-class-to-other-classes/248)

<div class="topic-metadata">

**Author:** [@ooghry](https://discourse.laminas.dev/u/ooghry)\
**Replies:** 5\
**Last updated:** [August 17, 2017, 1:23pm UTC](https://discourse.laminas.dev/t/best-approach-to-add-infrastructure-class-to-other-classes/248 "2017-08-17T13:23:18Z")

</div>

Hi there In my opinion some class like db,cache,logger is infrastructure class,means almost all other classes need those. what is best approach to prevent add those class to \_\_construct other classes. I’m searching so…

---

## [Feedback Needed: Naming of middleware-related repos](https://discourse.laminas.dev/t/feedback-needed-naming-of-middleware-related-repos/231)

<div class="topic-metadata">

**Author:** [@matthew](https://discourse.laminas.dev/u/matthew)\
**Replies:** 16\
**Last updated:** [August 7, 2017, 10:07pm UTC](https://discourse.laminas.dev/t/feedback-needed-naming-of-middleware-related-repos/231 "2017-08-07T22:07:37Z")

</div>

We’re starting to bring the various repositories for the Apigility on Expressive initiative into the zendframework GitHub organization, and realized we have a naming problem. The first has landed: zend-problem-details. …

---

## [RFC: HAL support for Apigility on Expressive](https://discourse.laminas.dev/t/rfc-hal-support-for-apigility-on-expressive/139)

<div class="topic-metadata">

**Author:** [@matthew](https://discourse.laminas.dev/u/matthew)\
**Replies:** 5\
**Last updated:** [July 13, 2017, 4:23pm UTC](https://discourse.laminas.dev/t/rfc-hal-support-for-apigility-on-expressive/139 "2017-07-13T16:23:21Z")

</div>

Background Hypertext Application Language, or HAL, is defined in two IETF proposals, JSON Hypertext Application Language and XML Hypertext Application Language. The basic ideas behind each are: Provide generic, exte…

---

## [Catching exceptions in middleware](https://discourse.laminas.dev/t/catching-exceptions-in-middleware/170)

<div class="topic-metadata">

**Author:** [@Sergey\_Telshevsky](https://discourse.laminas.dev/u/Sergey_Telshevsky)\
**Replies:** 7\
**Last updated:** [June 27, 2017, 2:06pm UTC](https://discourse.laminas.dev/t/catching-exceptions-in-middleware/170 "2017-06-27T14:06:27Z")

</div>

Good day, I've stumbled upon one problem I don't think I understand. I have middleware called ErrorHandler: class ErrorHandler implements \\Zend\\Stratigility\\MiddlewareInterface { public function \_\_invoke( …

---

## [Expressive without Diactoros](https://discourse.laminas.dev/t/expressive-without-diactoros/143)

<div class="topic-metadata">

**Author:** [@shadowhand](https://discourse.laminas.dev/u/shadowhand)\
**Replies:** 4\
**Last updated:** [June 6, 2017, 9:17pm UTC](https://discourse.laminas.dev/t/expressive-without-diactoros/143 "2017-06-06T21:17:42Z")

</div>

Transferring discussion of the issue I opened here, what would it take to disassociate Zend Expressive from Diactoros? Personally I find it a little weird to not be depending on psr/http-message-implementation. In my a…

[Previous page](https://discourse.laminas.dev/tag/expressive/4.md?match_all_tags=true&page=1&tags%5B%5D=expressive)
