Skip to content

Commit

Permalink
Setup: renamed "build artifact" to build
Browse files Browse the repository at this point in the history
  • Loading branch information
klees committed Feb 6, 2024
1 parent 552566d commit cf366c0
Show file tree
Hide file tree
Showing 74 changed files with 98 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function getUpdateObjective(Config $config = null): Setup\Objective
}


public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function hasConfig(): bool
*/
public function getArrayToConfigTransformation(): Refinery\Transformation
{
return $this->refinery->custom()->transformation(fn ($data): \ilBackgroundTasksSetupConfig => new \ilBackgroundTasksSetupConfig(
return $this->refinery->custom()->transformation(fn($data): \ilBackgroundTasksSetupConfig => new \ilBackgroundTasksSetupConfig(
$data["type"] ?? \ilBackgroundTasksSetupConfig::TYPE_SYNCHRONOUS,
$data["max_number_of_concurrent_tasks"] ?? 1
));
Expand Down Expand Up @@ -76,7 +76,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
return new ObjectiveCollection('Update chatroom database and server config', false, ...$objectives);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\ObjectiveCollection(
"Artifacts for Services/Component",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
return new ilDatabaseUpdateStepsExecutedObjective(new ilContentPageUpdateSteps());
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getInstallObjective(Config $config = null): Objective
return new Setup\Objective\NullObjective();
}

public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/DataProtection/classes/Setup/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getUpdateObjective(Config $config = null): Objective
return new ilTreeAdminNodeAddedObjective('dpro', 'DataProtection');
}

public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdocs
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getInstallObjective(Config $config = null): Objective
return new \ilTreeAdminNodeAddedObjective('tala', '__TalkTemplateAdministration');
}

public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritDoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\ObjectiveCollection(
"Artifacts for Services/EventHandling",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getUpdateObjective(Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/FileDelivery/src/Setup/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/
class Agent implements Setup\Agent
{
public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new Setup\ObjectiveCollection(
'File StreamDelivery Artifacts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function hasConfig(): bool
*/
public function getArrayToConfigTransformation(): Refinery\Transformation
{
return $this->refinery->custom()->transformation(fn ($data): \ilFileSystemSetupConfig => new \ilFileSystemSetupConfig(
return $this->refinery->custom()->transformation(fn($data): \ilFileSystemSetupConfig => new \ilFileSystemSetupConfig(
$data["data_dir"]
));
}
Expand Down Expand Up @@ -72,7 +72,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function testGetUpdateObjectiveWithoutConfig(): void

public function testGetBuildArtifactObjective(): void
{
$objective_collection = $this->obj->getBuildArtifactObjective();
$objective_collection = $this->obj->getBuildObjective();

$this->assertInstanceOf(NullObjective::class, $objective_collection);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/GlobalScreen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ All vendors for all scopes are collected when you perform a `composer install` o
Furthermore, the collection of providers in the system can also be done by ILIAS-CLI:

```
php ./cli/setup.php build-artifacts
php ./cli/setup.php build
```

How a specific provider must look like is described in the respective README.md files of the scopes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdocs
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new ilGlobalScreenBuildProviderMapObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
return new ilDatabaseUpdateStepsExecutedObjective(new ilGlossaryDBUpdateSteps());
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function getMigrations(): array
];
}

public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new ilObjectTypeSpecificPropertiesArtifactObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
));
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getUpdateObjective(\ILIAS\Setup\Config $config = null): Setup\Ob
return new Setup\Objective\NullObjective();
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
4 changes: 2 additions & 2 deletions components/ILIAS/Language/tests/ilLanguageSetupAgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ protected function setUp(): void
$refinery = new Refinery($this->createMock(DataFactory::class), $this->createMock(\ilLanguage::class));
$setup_language = $this->createMock(ilSetupLanguage::class);

$this->obj = new \ilLanguageSetupAgent($refinery, null, $setup_language);
$this->obj = new \ilLanguageSetupAgent($refinery, $setup_language);
}

public function testCreate(): void
Expand Down Expand Up @@ -77,7 +77,7 @@ public function testGetUpdateObjective(): void

public function testGetBuildArtifactObjective(): void
{
$result = $this->obj->getBuildArtifactObjective();
$result = $this->obj->getBuildObjective();

$this->assertInstanceOf(NullObjective::class, $result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/LegalDocuments/classes/Setup/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getUpdateObjective(Config $config = null): Objective
return new ilDatabaseUpdateStepsExecutedObjective(new UpdateSteps());
}

public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new ConsumerObjective();
}
Expand Down
2 changes: 1 addition & 1 deletion components/ILIAS/LegalDocuments/tests/Setup/AgentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testGetUpdateObjective(): void

public function testGetBuildArtifactObjective(): void
{
$this->assertInstanceOf(ConsumerObjective::class, (new Agent($this->mock(Refinery::class)))->getBuildArtifactObjective());
$this->assertInstanceOf(ConsumerObjective::class, (new Agent($this->mock(Refinery::class)))->getBuildObjective());
}

public function testGetStatusObjective(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function getUpdateObjective(Config $config = null): Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Objective
public function getBuildObjective(): Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
);
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
/**
* @inheritdoc
*/
public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
return new Setup\Objective\NullObjective();
}

public function getBuildArtifactObjective(): Setup\Objective
public function getBuildObjective(): Setup\Objective
{
return new Setup\Objective\NullObjective();
}
Expand Down
Loading

0 comments on commit cf366c0

Please sign in to comment.