Questions tagged [servicemanager]

The service control manager (SCM) is started at system boot. It is a remote procedure call (RPC) server, so that service configuration and service control programs can manipulate services on remote machines.

The service functions provide an interface for the following tasks performed by the SCM:

  • Maintaining the database of installed services.
  • Starting services and driver services either upon system startup or upon demand.
  • Enumerating installed services and driver services.
  • Maintaining status information for running services and driver services.
  • Transmitting control requests to running services.
  • Locking and unlocking the service database.
75 questions
0
votes
1 answer

zend framework 2 abstract factory is printing part of the class code

I'm new on ZF2. I'm trying to reproduce an example of the book learnzf.com which talk about abstract factories. When I try to config a service as AbstractFactoryInterface, ZF2 prints part of the code of the class as result and throw an error like…
0
votes
1 answer

Passing dynamic data to the construct of a service invokable

I have the following invokables set in my application config "service_manager":{ "invokables":{ "Dbmodel\\User":"Application\\DbModel\\UserModel", "Dbmodel\\App":"Application\\DbModel\\AppModel" } } So the theory is that I can call…
slicks1
  • 349
  • 1
  • 13
0
votes
1 answer

Error on Injecting dependencies into your ZF2 controllers

Hi I am having errors trying to inject dependencies on my controllers. Warning: Missing argument 1 for User\Controller\LoginController::__construct(), called in…
tom_cruz
  • 411
  • 1
  • 6
  • 15
0
votes
1 answer

How can I use ZF2 forms as a stand-alone module in my PHP application?

Looking at any kind of basic example on ZF2 forms, I have something like this: In Controller (any basic tutorial example) $username = new Element\Text('username'); $username->setLabel('Username')->setAttributes(array( 'class' =>…
Dennis
  • 7,907
  • 11
  • 65
  • 115
0
votes
0 answers

Doctrine 2 + ZF2: Create entities via ServiceManager

In a Zend Framework 2 app, I have some Doctrine2 entities that have dependencies, which are injected into them by the ServiceManager, i. e. an Order needs a new Invoice whenever it is created. 'service_manager' => [ 'invokables' => [ …
0
votes
2 answers

HP Service Manager RESTful Web Service query

I want to create a web service(in .net) that would get information from HP Service Manager. I know I can use GET in the RESTful API to get the information I need. I just don't know where to start. I've been trough the documentation but since this is…
phil652
  • 1,484
  • 1
  • 23
  • 48
0
votes
2 answers

Setting up ServiceManager with configuration files in Zend Framework 2

I have read ZF documentation about ServiceManager and think configuration (even in "config" php files) like public function getServiceConfig() { return array( 'invokables' => array( 'my-foo' => 'MyModule\Foo\Bar', ), …
0
votes
1 answer

Which parts of the Zend Framework 2 can be easily replaced by custom classes?

Zend Framework 2 provides a possibility to use custom classes instead of a invokables delivered with the framework. E.g. ViewHelper classes: namespace Application; ... class Module { public function onBootstrap(MvcEvent $mvcEvent) { …
automatix
  • 14,018
  • 26
  • 105
  • 230
0
votes
1 answer

How to decode OLAP Query?

I am totally fresher to OLAP server. i have a OLAP query that is working fine, i just want to know, which tables are linked to send the result and how(i mean with which joins). Here is query. WITH MEMBER [Measures].[ThisYearMonthToDate] AS…
Ram
  • 1,131
  • 10
  • 28
  • 52
0
votes
1 answer

Nulling a string or any type when don't know return value?

What is the best way to null a item if you don't know what its value can be? I am going through objects which can be of any type from an object. How can I cast when I don't know what the return value might be? string viewValue =…
c-sharp-and-swiftui-devni
  • 3,743
  • 4
  • 39
  • 100
0
votes
1 answer

ZF2 custom view helper shares variable across multiple elements - shared service issue?

I successfully added a custom view helper with the following configuration: https://gist.github.com/webdevilopers/b22f7471fd2b8d60cdea#file-module-php The view helper has a custom variable named…
webDEVILopers
  • 1,886
  • 1
  • 21
  • 35
0
votes
3 answers

Zend Framework 2 Service Manager Dependency Injection

My application is a collection of POPO's and I'm trying to wire these POPO's up using the Zend Framework 2 Service Manager. To illustrate my problem, take the following example: $config = array( 'services' => array( 'my.app.serviceA' => new…
Luke
  • 20,878
  • 35
  • 119
  • 178
0
votes
1 answer

The factory was called but did not return an instance

I started learning ZF-2.2 but have a problem with ServiceManager. module.config.php 'service_manager' => array( 'abstract_factories' => array( 'Zend\Cache\Service\StorageCacheAbstractServiceFactory', …
0
votes
1 answer

map a custom enum list to a custom form property in an extended incident class in scsm 2012 R2

I'm struggeling to understand how to map a custom enum list to a custom form property in an extended incident class in SCSM 2012 R2 using authoring tool. Here's what i want to have happen: I am going to publish a request offering on my SMPortal for…
JaR
  • 201
  • 2
  • 11
0
votes
1 answer

Issue in phpuit ServiceManager::get was unable to fetch or create an instance for ModuleManager

I am following this guide http://devblog.x2k.co.uk/getting-the-servicemanager-into-the-test-environment-and-dependency-injection/ to get my phpunit stuff to run. But after i add this code AS PER according to the tutorial . …
Danushka Gunawardena
  • 1,109
  • 1
  • 9
  • 17