How to access a global Service in gitlab.ci 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:

AppServiceVersionService:
    class: AppServiceVersionService

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

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

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

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

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