public function setObjectManager(ObjectManager $om, $rootDir)
    {
        $this->om = $om;
        $this->rootDir = $rootDir.'/..';
        $this->baseUri = 'https://github.com/claroline/Distribution/tree/master';
    }
public function setObjectManager(ObjectManager $om, $rootDir)
    {
        $this->om = $om;
        $this->rootDir = $rootDir.'/..';
        $this->baseUri = 'https://github.com/claroline/Distribution/tree/master';
    }
public function setObjectManager ( ObjectManager $ om , $ rootDir ) { $ this -> om = $ om ; $ this -> rootDir = $ rootDir . '/..' ; $ this -> baseUri = 'https://github.com/claroline/Distribution/tree/master' ; }
Injects Serializer service.

@DI\InjectParams({
"om"      = @DI\Inject("claroline.persistence.object_manager"),
"rootDir" = @DI\Inject("%kernel.root_dir%")
})

@param ObjectManager $om
@param string        $rootDir
Injects Serializer service .