‪TYPO3CMS  ‪main
checkIntegrityComposer Class Reference

Public Member Functions

int execute ()
 

Private Member Functions

Symfony Component Finder Finder findExtensionComposerJson ()
 
 validateComposerJson (string $composerJsonFile)
 
string extractExtensionKey (string $filename)
 

Private Attributes

array $rootComposerJson = array( )
 
 $testResults = array( )
 

Detailed Description

Core integrity test script:

Find all composer.json files in all system extensions and compare their dependencies against the defined dependencies of our root composer.json

Definition at line 30 of file checkIntegrityComposer.php.

Member Function Documentation

◆ execute()

int checkIntegrityComposer::execute ( )

Executes the composer integrity check. The return value is used directly in the ext() call outside this class.

Returns
‪int

Definition at line 44 of file checkIntegrityComposer.php.

References $output, $rootComposerJson, findExtensionComposerJson(), and validateComposerJson().

◆ extractExtensionKey()

string checkIntegrityComposer::extractExtensionKey ( string  $filename)
private

Makes the output on CLI a bit more readable

Parameters
string$filename
Returns
‪string

Definition at line 151 of file checkIntegrityComposer.php.

Referenced by validateComposerJson().

◆ findExtensionComposerJson()

Symfony Component Finder Finder checkIntegrityComposer::findExtensionComposerJson ( )
private

Finds all composer.json files in TYPO3s system extensions

Returns
‪\Symfony\Component\Finder\Finder

Definition at line 88 of file checkIntegrityComposer.php.

References $finder.

Referenced by execute().

◆ validateComposerJson()

checkIntegrityComposer::validateComposerJson ( string  $composerJsonFile)
private

Checks if the dependencies defined in $composerJsonFile are the same as in TYPO3s root composer.json file.

Parameters
string$composerJsonFile

Definition at line 104 of file checkIntegrityComposer.php.

References extractExtensionKey().

Referenced by execute().

Member Data Documentation

◆ $rootComposerJson

array checkIntegrityComposer::$rootComposerJson = array( )
private

Definition at line 34 of file checkIntegrityComposer.php.

Referenced by execute().

◆ $testResults

checkIntegrityComposer::$testResults = array( )
private

Definition at line 36 of file checkIntegrityComposer.php.