Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spryker/spryker into feature/sc-4…
Browse files Browse the repository at this point in the history
…55/master-define-the-current-environment-in-config
  • Loading branch information
alexanderM91 committed Jun 24, 2019
2 parents 3a9d533 + 1bfa53d commit e8e1260
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 79 deletions.
17 changes: 17 additions & 0 deletions src/Spryker/Shared/Setup/SetupConstants.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,24 @@
*/
interface SetupConstants
{
/**
* @deprecated Will be removed without replacement.
*
* @api
*/
public const JENKINS_BASE_URL = 'JENKINS_BASE_URL';

/**
* @deprecated Will be removed without replacement.
*
* @api
*/
public const JENKINS_DIRECTORY = 'JENKINS_DIRECTORY';

/**
* @deprecated Will be removed without replacement.
*
* @api
*/
public const JENKINS_CSRF_PROTECTION_ENABLED = 'SETUP:JENKINS_CSRF_PROTECTION_ENABLED';
}
3 changes: 3 additions & 0 deletions src/Spryker/Zed/Setup/Business/Model/Cronjobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use ErrorException;
use Spryker\Zed\Setup\SetupConfig;

/**
* @deprecated Use Scheduler module instead. Will be removed without replacement.
*/
class Cronjobs
{
public const ROLE_ADMIN = 'admin';
Expand Down
2 changes: 2 additions & 0 deletions src/Spryker/Zed/Setup/Business/SetupBusinessFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
class SetupBusinessFactory extends AbstractBusinessFactory
{
/**
* @deprecated Method will be removed without replacement.
*
* @return \Spryker\Zed\Setup\Business\Model\Cronjobs
*/
public function createModelCronjobs()
Expand Down
6 changes: 6 additions & 0 deletions src/Spryker/Zed/Setup/Business/SetupFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class SetupFacade extends AbstractFacade implements SetupFacadeInterface
/**
* @api
*
* @deprecated Method will be removed without replacement.
*
* @param array $roles
*
* @return string
Expand All @@ -29,6 +31,8 @@ public function generateCronjobs(array $roles)
/**
* @api
*
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function enableJenkins()
Expand All @@ -39,6 +43,8 @@ public function enableJenkins()
/**
* @api
*
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function disableJenkins()
Expand Down
6 changes: 6 additions & 0 deletions src/Spryker/Zed/Setup/Business/SetupFacadeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ interface SetupFacadeInterface
/**
* @api
*
* @deprecated Method will be removed without replacement.
*
* @param array $roles
*
* @return string
Expand All @@ -21,13 +23,17 @@ public function generateCronjobs(array $roles);
/**
* @api
*
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function enableJenkins();

/**
* @api
*
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function disableJenkins();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @deprecated Will be removed without replacement.
*
* @method \Spryker\Zed\Setup\Business\SetupFacadeInterface getFacade()
* @method \Spryker\Zed\Setup\Communication\SetupCommunicationFactory getFactory()
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @deprecated Will be removed without replacement.
*
* @method \Spryker\Zed\Setup\Business\SetupFacadeInterface getFacade()
* @method \Spryker\Zed\Setup\Communication\SetupCommunicationFactory getFactory()
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
use Symfony\Component\Console\Output\OutputInterface;

/**
* @deprecated Will be removed without replacement.
*
* @method \Spryker\Zed\Setup\Business\SetupFacadeInterface getFacade()
* @method \Spryker\Zed\Setup\Communication\SetupCommunicationFactory getFactory()
*/
Expand Down
12 changes: 12 additions & 0 deletions src/Spryker/Zed/Setup/SetupConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public function getPathForJobsPHP(): string
}

/**
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function getJenkinsUrl()
Expand All @@ -38,6 +40,8 @@ public function getJenkinsUrl()
}

/**
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function getJenkinsDirectory()
Expand All @@ -46,6 +50,8 @@ public function getJenkinsDirectory()
}

/**
* @deprecated Method will be removed without replacement.
*
* @return string
*/
public function getJenkinsJobsDirectory()
Expand Down Expand Up @@ -96,6 +102,8 @@ private function getDefaultSetupInstallCommandNames()
}

/**
* @deprecated Method will be removed without replacement.
*
* Returns the path to the environment configuration of cronjob functionality.
*
* @return string
Expand All @@ -112,6 +120,8 @@ public function getCronjobsConfigFilePath(): string
}

/**
* @deprecated Method will be removed without replacement.
*
* Returns the path to the cronjobs definition, their config and schedule.
*
* @return string
Expand All @@ -128,6 +138,8 @@ public function getCronjobsDefinitionFilePath(): string
}

/**
* @deprecated Method will be removed without replacement.
*
* @return bool
*/
public function isJenkinsCsrfProtectionEnabled(): bool
Expand Down
79 changes: 0 additions & 79 deletions tests/SprykerTest/Zed/Setup/Business/SetupConfigTest.php

This file was deleted.

0 comments on commit e8e1260

Please sign in to comment.