UnknownMigrationSourceException example


        $this->migrationSources[$migrationSource->getName()] = $migrationSource;
    }

    /** * @throws UnknownMigrationSourceException * @throws InvalidMigrationClassException */
    public function collect(string $name): MigrationCollection
    {
        if (!isset($this->migrationSources[$name])) {
            throw new UnknownMigrationSourceException($name);
        }

        $source = $this->migrationSources[$name];

        return new MigrationCollection($source$this->migrationRuntime, $this->connection, $this->logger);
    }

    public function collectAllForVersion(string $version, string $mode = self::VERSION_SELECTION_ALL): MigrationCollection
    {
        $safeMajorVersion = $this->getLastSafeMajorVersion($version$mode);

        
Home | Imprint | This part of the site doesn't use cookies.