Classes/Custom/Composer.php
public static function install( \Composer\Script\Event $event )
	{
		$repository = $event->getComposer()->getRepositoryManager()->getLocalRepository();

		if( ( $t3package = $repository->findPackage( 'aimeos/aimeos-typo3', '*' ) ) === null
			&& ( $t3package = $repository->findPackage( 'typo3-ter/aimeos-typo3', '*' ) ) === null
		) {
			throw new \RuntimeException( 'No installed package "aimeos/aimeos-typo3" or "typo3-ter/aimeos-typo3" found' );
		}

		$installer = $event->getComposer()->getInstallationManager();
		$t3path = $installer->getInstallPath( $t3package );

		if( ( $package = $repository->findPackage( 'aimeos/ai-client-html', '*' ) ) !== null )
		{
			$event->getIO()->write( 'Installing Aimeos public files from HTML client' );

			$path = $installer->getInstallPath( $package );
			self::copyRecursive( $path . '/client/html/themes', $t3path . '/Resources/Public/Themes' );
		}

		if( ( $package = $repository->findPackage( 'aimeos/ai-typo3', '*' ) ) !== null )
		{
			$event->getIO()->write( 'Creating symlink to Aimeos extension directory' );

			$path = dirname( $installer->getInstallPath( $package ) );
			self::createLink( '../../../../../../' . $path, $t3path . '/Resources/Private/Extensions' );
		}
	}
public static function install( \Composer\Script\Event $event )
	{
		$repository = $event->getComposer()->getRepositoryManager()->getLocalRepository();

		if( ( $t3package = $repository->findPackage( 'aimeos/aimeos-typo3', '*' ) ) === null
			&& ( $t3package = $repository->findPackage( 'typo3-ter/aimeos-typo3', '*' ) ) === null
		) {
			throw new \RuntimeException( 'No installed package "aimeos/aimeos-typo3" or "typo3-ter/aimeos-typo3" found' );
		}

		$installer = $event->getComposer()->getInstallationManager();
		$t3path = $installer->getInstallPath( $t3package );

		if( ( $package = $repository->findPackage( 'aimeos/ai-client-html', '*' ) ) !== null )
		{
			$event->getIO()->write( 'Installing Aimeos public files from HTML client' );

			$path = $installer->getInstallPath( $package );
			self::copyRecursive( $path . '/client/html/themes', $t3path . '/Resources/Public/Themes' );
		}

		if( ( $package = $repository->findPackage( 'aimeos/ai-typo3', '*' ) ) !== null )
		{
			$event->getIO()->write( 'Creating symlink to Aimeos extension directory' );

			$path = dirname( $installer->getInstallPath( $package ) );
			self::createLink( '../../../../../../' . $path, $t3path . '/Resources/Private/Extensions' );
		}
	}
public static function install ( \ Composer \ Script \ Event $ event ) { $ repository = $ event -> getComposer ( ) -> getRepositoryManager ( ) -> getLocalRepository ( ) ; if ( ( $ t3package = $ repository -> findPackage ( 'aimeos/aimeos-typo3' , '*' ) ) === null && ( $ t3package = $ repository -> findPackage ( 'typo3-ter/aimeos-typo3' , '*' ) ) === null ) { throw new \ RuntimeException ( 'No installed package "aimeos/aimeos-typo3" or "typo3-ter/aimeos-typo3" found' ) ; } $ installer = $ event -> getComposer ( ) -> getInstallationManager ( ) ; $ t3path = $ installer -> getInstallPath ( $ t3package ) ; if ( ( $ package = $ repository -> findPackage ( 'aimeos/ai-client-html' , '*' ) ) !== null ) { $ event -> getIO ( ) -> write ( 'Installing Aimeos public files from HTML client' ) ; $ path = $ installer -> getInstallPath ( $ package ) ; self :: copyRecursive ( $ path . '/client/html/themes' , $ t3path . '/Resources/Public/Themes' ) ; } if ( ( $ package = $ repository -> findPackage ( 'aimeos/ai-typo3' , '*' ) ) !== null ) { $ event -> getIO ( ) -> write ( 'Creating symlink to Aimeos extension directory' ) ; $ path = dirname ( $ installer -> getInstallPath ( $ package ) ) ; self :: createLink ( '../../../../../../' . $ path , $ t3path . '/Resources/Private/Extensions' ) ; } }
Installs the shop files.

@param \Composer\Script\Event $event Event instance
@throws \RuntimeException If an error occured
Installs the shop files .