Skip to content

Commit

Permalink
feat: set container lib version
Browse files Browse the repository at this point in the history
  • Loading branch information
hschoenenberger committed Dec 24, 2024
1 parent b270145 commit 3df654f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
13 changes: 7 additions & 6 deletions config/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ services:
arguments:
- 'PrestaShop\Module\PsAccounts\Service\PsAccountsService'

PrestaShop\Module\PsAccounts\Service\PsBillingService:
class: PrestaShop\Module\PsAccounts\Service\PsBillingService
public: true
factory: [ 'PrestaShop\Module\PsAccounts\ServiceContainer\StaticProvider', 'provide' ]
arguments:
- 'PrestaShop\Module\PsAccounts\Service\PsBillingService'
# FIXME: probably totally useless now
# PrestaShop\Module\PsAccounts\Service\PsBillingService:
# class: PrestaShop\Module\PsAccounts\Service\PsBillingService
# public: true
# factory: [ 'PrestaShop\Module\PsAccounts\ServiceContainer\StaticProvider', 'provide' ]
# arguments:
# - 'PrestaShop\Module\PsAccounts\Service\PsBillingService'

PrestaShop\Module\PsAccounts\Repository\UserTokenRepository:
class: PrestaShop\Module\PsAccounts\Repository\UserTokenRepository
Expand Down
10 changes: 10 additions & 0 deletions ps_accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ public function getService($serviceName)
}
}

/**
* @param string $serviceName
*
* @return bool
*/
public function hasService($serviceName)
{
return $this->getServiceContainer()->has($serviceName);
}

/**
* @param string $name
*
Expand Down

0 comments on commit 3df654f

Please sign in to comment.