src/mako/application/cli/commands/migrations/Command.php
protected function findPackageMigrations(): array
	{
		$migrations = [];

		foreach($this->application->getPackages() as $package)
		{
			foreach($this->fileSystem->glob($package->getPath() . '/src/migrations/*.php') as $migration)
			{
				$migrations[] = (object) ['package' => $package->getName(), 'version' => $this->getBasename($migration)];
			}
		}

		return $migrations;
	}
protected function findPackageMigrations(): array
	{
		$migrations = [];

		foreach($this->application->getPackages() as $package)
		{
			foreach($this->fileSystem->glob($package->getPath() . '/src/migrations/*.php') as $migration)
			{
				$migrations[] = (object) ['package' => $package->getName(), 'version' => $this->getBasename($migration)];
			}
		}

		return $migrations;
	}
protected function findPackageMigrations ( ) : array { $ migrations = [ ] ; foreach ( $ this -> application -> getPackages ( ) as $ package ) { foreach ( $ this -> fileSystem -> glob ( $ package -> getPath ( ) . '/src/migrations/*.php' ) as $ migration ) { $ migrations [ ] = ( object ) [ 'package' => $ package -> getName ( ) , 'version' => $ this -> getBasename ( $ migration ) ] ; } } return $ migrations ; }
Returns all package migrations.

@return array
Returns all package migrations .