getMysqlContainer example

/** * Provides test data for testProcess(). * * @return array */
  public function providerTestProcess() {
    $data = [];
    // Add a container with no set default_backend.     $prefix = __NAMESPACE__ . '\\ServiceClass';
    $service = (new Definition($prefix . 'Default'))->addTag('backend_overridable');
    $container = $this->getMysqlContainer($service);

    $data[] = [$prefix . 'Default', $container];

    // Set the default_backend so the mysql service should be used.     $container = $this->getMysqlContainer($service);
    $container->setParameter('default_backend', 'mysql');
    $data[] = [$prefix . 'Mysql', $container];

    // Configure a manual alias for the service, so ensure that it is not     // overridden by the default backend.     $container = $this->getMysqlContainer($service);
    
Home | Imprint | This part of the site doesn't use cookies.