Skip to content

Property $application is not set #10

@ketners

Description

@ketners

When trying to access the public property $application, it is empty. Also, I could not find where the code sets the property. All I find is that it is only declared in the module class.

What I am trying is this (I use ZF2, but upon inspection it seems that the same applies to Laminas):

$this->getModule('ZF2')->application->getServiceManager()

But it does not work because of an error.


[Error] Call to a member function getServiceManager() on null

Is it a bug or there is a specific use case for this property? Could not find any hint in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions