Classes/Custom/Composer.php
protected static function createLink( $source, $target )
	{
		if( file_exists( $target ) === false && @symlink( $source, $target ) === false )
		{
			$source = realpath( __DIR__ . '/' . $source );

			if( symlink( $source, $target ) === false ) {
				throw new \RuntimeException( sprintf( 'Failed to create symlink for "%1$s" to "%2$s"', $source, $target ) );
			}
		}
	}
protected static function createLink( $source, $target )
	{
		if( file_exists( $target ) === false && @symlink( $source, $target ) === false )
		{
			$source = realpath( __DIR__ . '/' . $source );

			if( symlink( $source, $target ) === false ) {
				throw new \RuntimeException( sprintf( 'Failed to create symlink for "%1$s" to "%2$s"', $source, $target ) );
			}
		}
	}
protected static function createLink ( $ source , $ target ) { if ( file_exists ( $ target ) === false && @ symlink ( $ source , $ target ) === false ) { $ source = realpath ( __DIR__ . '/' . $ source ) ; if ( symlink ( $ source , $ target ) === false ) { throw new \ RuntimeException ( sprintf ( 'Failed to create symlink for "%1$s" to "%2$s"' , $ source , $ target ) ) ; } } }
Creates a link if it doesn't exist

@param string $source Relative source path
@param string $target Absolute target path
Creates a link if it doesn t exist