I been searching for a solution to set the type of a routing in php.
In yml it can be done by:
_sonata_admin:
resource: .
type: sonata_admin
prefix: /admin
In PHP I am importing it like so:
$routingImport = $loader->import(".");
$routingImport->addPrefix('/admin');
$collection->addCollection($routingImport );
It there a way to add a type parameter to this import like the one in yml?