I have a service called:

```
<?php
class CustomService
{
    private $string;
    private $service1;
    private $service2;

    public function __construct($string, Service1 $service1, Service2 $service2)
    {
        $this->string = $string;
        $this->service1 = $service1;
        $this->service2 = $service2;
    }

    //Custom functions
}

```

The $string parameter is a string that can change its value.

I want to call this service from other services, but is there a way to define the ´CustomService´ in my services.yaml with some kind of alias?

```
service:
    App\Service\CustomService:
        alias: preService1
        arguments:
            $string: 'ABCD'

    App\Service\CustomService:
        alias: preService2
        arguments:
            $string: 'EFGH'

```

And inject one of the services defined by alias in another service:

```
<?php
class PurchaseService
{
    public function __construct(CustomService $preService1)
    {
        //Here $preService1->string must be 'ABCD'
    }

    //Or in other functions in this service $preService1->string must be 'ABCD'
}

```