25 lines
473 B
PHP
25 lines
473 B
PHP
<?php
|
|
|
|
namespace WPML\TM\TranslationProxy\Services;
|
|
|
|
use WPML\TM\TranslationProxy\Services\Project\Manager;
|
|
use function WPML\Container\make;
|
|
|
|
class AuthorizationFactory {
|
|
/**
|
|
* @return Authorization
|
|
* @throws \Auryn\InjectionException
|
|
*/
|
|
public function create() {
|
|
$projectManager = make(
|
|
Manager::class,
|
|
[
|
|
':projectApi' => wpml_tm_get_tp_project_api(),
|
|
]
|
|
);
|
|
|
|
return make( Authorization::class, [ ':projectManager' => $projectManager ] );
|
|
}
|
|
|
|
}
|