How to access a global Service in file

I was using a file "version.php" to get the release version, then i converted it to a service and added it to globally:

    class: AppServiceVersionService

So i can call it any where like this VersionService::getVersion

I was calling the old file version.php in to return the release version.

And now i have no idea how to get the global servie in my file!!

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *