Skip to content
An example for use Win32ServiceBundle with Symfony 4
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public
src
.env
.gitignore
LICENSE
README.md
composer.json
composer.lock
symfony.lock

README.md

Win32Service Bundle Example

This project use Symfony 4 and the Win32Service Bundle for integrate the Win32Service Extension into the project.

Requirements

For run this example, you need this:

Install the project

After install PHP and the Win32Service extension, download this repository.

Unzip the archive content when you want.

Note: The path nost does not contains space or long name.

Execute the command

php composer.phar install -o

Read the code and configuration

Enable the bundle

Read into the config/bundles.php.

Configure the bundle

Read the configuration into the file

Extends the abstract class

Read the code into this class

Configure the service

Read the configuraion of the service

Manage Services

Register

Register the service before the starting with this command:

php bin\console win32service:register

Start

Now start the new service:

php bin\console win32service:action start

Stop

After a moment, stop the service:

php bin\console win32service:action stop

Unregister

When you want update the service settings or uninstall the project, execute this command :

php bin\console win32service:unregister
You can’t perform that action at this time.