I'm using the component (version 2.7) not the symfony framework.
I'm using PHP to inject and it is OK but I decided to use XML. I don't know how to load XML stored services into ContainerBuilder object,
I'm using the component this way:
$container = new ContainerBuilder();
$container->setDefinition('Crypt', new Definition('MiladRahimi\PHPCrypt\Crypt'));