Hi,
SetListInterface was deprecated.
/**
* @deprecated This interface needs a reflection to load and uses constant links.
* Now we changed to services provider architecture that can be used and registerd easily.
* Use @see SetProviderInterface instead
*/
interface SetListInterface
{
}
// src/Set/Contract/SetListInterface.php
interface SetProviderInterface
{
/**
* @return SetInterface[]
*/
public function provide(): array;
}
// src/Set/Contract/SetProviderInterface.php
Question
Can you please provide documentation or examples on how to register a class that implements the SetProviderInterface using RectorConfigBuilder or RectorConfig.
It is unclear how to properly implement and register the new interface.
Thank you.
Hi,
SetListInterfacewas deprecated.Question
Can you please provide documentation or examples on how to register a class that implements the
SetProviderInterfaceusingRectorConfigBuilderorRectorConfig.It is unclear how to properly implement and register the new interface.
Thank you.