KnpLabs/ConsoleServiceProvider

calling add() function on a non object

ravitej91 opened this issue · 1 comments

the following is my console code, but when I try to run this code I'm getting the error that $application is non-object. I tried in many other ways but same issue, Tried to dump $application giving me a knp command object. Please tell me whats wrong with my code.

!/usr/bin/env php

add(new x()); $application->run();

Hi @ravitej91 - I have just taken over maintenance of this repository - did you come right with this?