# \[Solved\] In plugin: opening the composer without changing the route

**URL:** <https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710>\
**Category:** Development\
**Created:** [August 9, 2017, 12:02pm UTC](https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710 "2017-08-09T12:02:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [August 9, 2017, 7:40pm UTC](https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710/4 "2017-08-09T19:40:55Z")

</div>

It does, I added that warning yesterday because I got bitten by it.

It means that you (or another plugin) have previously called `container.lookup("controller:composer")` which cached the instance of the composer controller on the container and any changes made to the composer class (through `modifyClass` or `reopen`) won’t apply.

If you did the `lookup`, then you need to move the `modifyClass` **before** it.  
If you didn’t, you need to put your initializer **before** the one calling it.

---

_[View the full topic](https://meta.discourse.org/t/solved-in-plugin-opening-the-composer-without-changing-the-route/67710)._
