Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TAO-8697 - Replace Calls of singleton method by ServiceManager calls #136

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

k-v-vladimir
Copy link

https://oat-sa.atlassian.net/browse/TAO-8697
Replace Calls of singleton method by ServiceManager calls

Classes which are extending the OntologyClass ConfigurableService, are retrieved by using the ServiceManager::get() method instead of calling the deprecated singleton method.

Copy link
Member

@julien-sebire julien-sebire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job on the testing.
I think we need a version bump here. Since it's not modifying behavior, i'd go for a fix bump (third number).

@@ -30,7 +30,8 @@
use oat\taoTestTaker\models\TestTakerService;
use core_kernel_classes_Resource;
use core_kernel_classes_Class;

use oat\generis\test\TestCase;
use oat\taoLti\models\classes\user\UserService as UserService;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need the alias here, since UserService is already the base name of the class.

@@ -30,7 +30,8 @@
use oat\taoTestTaker\models\TestTakerService;
use core_kernel_classes_Resource;
use core_kernel_classes_Class;

use oat\generis\test\TestCase;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is oat\generis\test\TestCase used in the class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants