public function createWithConstructorParams(array $params, $config = []) {
        $definition = $this->prepareObjectDefinitionFromConfig($config);

        return $this->getContainer()->create($definition, $params);
    }