Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 6, 2024 via composer

symfony/service-contracts v3.4.1

Generic abstractions related to writing services
Package summary
Share
0
issues
1
license
2
MIT
Package created
27 May 2019
Version published
26 Dec 2023
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
psr/container@2.0.2
symfony/service-contracts@v3.4.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of symfony/service-contracts 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/container2.0.23.55 kBMIT
prod

Visualizations

Frequently Asked Questions

What does symfony/service-contracts do?

The symfony/service-contracts package provides a set of generic abstractions extracted from Symfony components. These abstractions primarily relate to writing services and can be used to build functionalities based on the proven semantics of Symfony components. These implementations have been tested in demanding scenarios, ensuring their reliability and efficacy.

How do you use symfony/service-contracts?

In order to use symfony/service-contracts, the first step is to install it using composer. You can do this by running the following command in your project directory:

composer require symfony/service-contracts

Most of the time, a Symfony contract is an interface to be implemented by user-defined classes. For example, lets consider a LoggerInterface contract. To use it, you write a class implementing the LoggerInterface. Here is a simple example:

use Psr\Log\LoggerInterface;

class MyLogger implements LoggerInterface
{
    public function log($level, $message, array $context = array())
    {
        // Your logging logic here
    }
}

This is a simple example and your actual implementation may vary depending on your use case.

Where are the symfony/service-contracts docs?

The symfony/service-contracts documentation is centrally located at the main Symfony Contracts README page, under the 'Service Contracts' section. You can find more information regarding the usage and implementation of these contracts at the following url: Symfony Service Contracts Documentation