class Administration{
/**
* @Inject
*
* @var \Picqer\Financials\Moneybird\Moneybird
*/
private $apiClient;
public function execute(){
var_dump($this->apiClient->administration->get());
}
}
This works well. However, after determining the Administration, the Connection object needs to be updated with the administrationId. However, we can not access the connection of the Moneybird object.
Any suggestion on how to do this? Maybe the $connection property should be made public / or be accessible using a getter function?
We use PHP-DI as dependency injection container which allows us to:
Then the Moneybird object can be injected like:
This works well. However, after determining the Administration, the Connection object needs to be updated with the
administrationId
. However, we can not access the connection of the Moneybird object.Any suggestion on how to do this? Maybe the $connection property should be made public / or be accessible using a getter function?