mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
ok make it cleaner, it's working well and blazing fast but I have to do a lot cleaning and commenting and docs as well before push it to master --- hope at christmas day, also thinking some internal ideas - the whole code is not ready to be readen by a third person yet.
Former-commit-id: 0b3fb2841d5032ff47bdca42a6f4ccfeb789ce3c
This commit is contained in:
@@ -469,8 +469,8 @@ func (c *testControllerNotCreateNewDueManuallySettingAllFields) AfterActivation(
|
||||
-- got dependencies length: %d`, n)
|
||||
}
|
||||
|
||||
if a.IsRequestScoped() {
|
||||
c.T.Fatalf(`this controller shouldn't be tagged used as request scoped(create new instances on each request),
|
||||
if !a.Singleton() {
|
||||
c.T.Fatalf(`this controller should be tagged as Singleton. It shouldn't be tagged used as request scoped(create new instances on each request),
|
||||
it doesn't contain any dynamic value or dependencies that should be binded via the iris mvc engine`)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user