Skip to content

Commit

Permalink
Merge pull request #7 from ebaranauskas/SYMFONY-4
Browse files Browse the repository at this point in the history
Replaced symfony/symfony with symfony components, removed Symfony 2 support
  • Loading branch information
mSprunskas authored Jan 10, 2022
2 parents 6377c39 + b79e049 commit c6587d6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/vendor/
/bin/
/var/
composer.lock
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 2.0.0
### Removed
- Symfony 2.* support
### Changed
- Replaced symfony/symfony with symfony components

## 1.0.2
### Added
- Added support for Symfony 4.x
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"require": {
"php": "^7.0",
"symfony/lock": "^3.0 || ^4.0",
"symfony/symfony": "^2.8 || ^3.0 || ^4.0"
"symfony/config": "^3.0 || ^4.0",
"symfony/dependency-injection": "^3.0 || ^4.0",
"symfony/http-kernel": "^3.0 || ^4.0"
},
"suggest": {
"predis/predis": "To store locks in Redis"
Expand Down
9 changes: 8 additions & 1 deletion test/TestKernel.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<?php

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class TestKernel extends Kernel
class TestKernel extends Kernel implements CompilerPassInterface
{
public function registerBundles()
{
Expand All @@ -22,4 +24,9 @@ public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config.yml');
}

public function process(ContainerBuilder $container)
{
$container->getDefinition('paysera_lock.lock_manager')->setPublic(true);
}
}

0 comments on commit c6587d6

Please sign in to comment.