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

[WIP] 2.0 #9

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 0 additions & 51 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,55 +1,4 @@
/*.pnproj
/.idea
.htaccess
atlassian-ide-plugin.xml

### Symfony template
# Cache and logs (Symfony2)
/app/cache/*
/app/logs/*
!app/cache/.gitkeep
!app/logs/.gitkeep

# Cache and logs (Symfony3)
/var/*
!/var/cache
/var/cache/*
!var/cache/.gitkeep
!/var/logs
/var/logs/*
!var/logs/.gitkeep
!/var/sessions
/var/sessions/*
!var/sessions/.gitkeep
var/SymfonyRequirements.php

# Parameters
/app/config/parameters.yml
/app/config/parameters.local.yml
/app/config/parameters.ini

# Managed by Composer
/app/bootstrap.php.cache
/var/bootstrap.php.cache
/bin/*
!bin/console
bin/symfony_requirements
/vendor/

# Assets and user uploads
/web/bundles/
/web/uploads/

# PHPUnit
/app/phpunit.xml

# Build data
/build/
/target/

# Any PHARs
*.phar

Thumbs.db

composer.lock
48 changes: 30 additions & 18 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,48 @@
language: php

php:
- 5.5
- 5.6
- 7
- nightly
- hhvm
- 7.1
- 7
- 5.6
- 5.5

env:
- SYMFONY_VERSION='2.7.*' deps='no'
- SYMFONY_VERSION='2.8.*' deps='no'
- SYMFONY_VERSION='3.0.*' deps='no'
- SYMFONY_VERSION='3.1.*' deps='no'
- SYMFONY_VERSION='~3.2@dev' deps='no'
- PACKAGES='symfony/symfony=~3.4' STABILITY=dev
- PACKAGES='symfony/symfony=3.3.*'
- PACKAGES='symfony/symfony=3.2.*'
- PACKAGES='symfony/symfony=2.8.*'
- PACKAGES='symfony/symfony=2.7.*'

## Run on container environment
sudo: false

## Cache composer bits
cache:
directories:
- $HOME/.composer/cache

matrix:
include:
- php: 5.5
env: SYMFONY_VERSION='2.7.*' deps='low'
include:
- php: 7.1
env: PACKAGES='symfony/symfony=~4.0' STABILITY=dev
- php: nightly
env: PACKAGES='symfony/symfony=~4.0' STABILITY=dev

allow_failures:
- php: hhvm
- php: nightly
allow_failures:
- php: nightly
- env: PACKAGES='symfony/symfony=~4.0' STABILITY=dev

before_install:
- travis_retry composer self-update

install:
- composer require --no-update symfony/symfony=${SYMFONY_VERSION}
- if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
- if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest --prefer-stable update; fi;
- composer require --no-update ${PACKAGES}
- if [ "$STABILITY" = "dev" ]; then composer config minimum-stability dev; fi;
- if [ "$deps" = "no" ] || [ -z "$deps" ]; then composer --prefer-source install; fi;
- if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest --prefer-stable update; fi;

script:
- rm -rf build
- mkdir -p build
- vendor/bin/phpunit --colors -c phpunit.xml
101 changes: 0 additions & 101 deletions ApiDoc/Annotation/RpcApiDoc.php

This file was deleted.

85 changes: 0 additions & 85 deletions ApiDoc/Extractor/Provider/AbstractRpcMethodProvider.php

This file was deleted.

49 changes: 0 additions & 49 deletions ApiDoc/Extractor/Provider/MethodAnnotationsProvider.php

This file was deleted.

5 changes: 2 additions & 3 deletions Http/RequestInterface.php → AttributedInterface.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

namespace Bankiru\Api\Rpc\Http;
namespace Bankiru\Api\Rpc;

use ScayTrase\Api\Rpc\RpcRequestInterface;
use Symfony\Component\HttpFoundation\ParameterBag;

interface RequestInterface extends RpcRequestInterface
interface AttributedInterface
{
/**
* @return ParameterBag
Expand Down
8 changes: 7 additions & 1 deletion RpcBundle.php → BankiruRpcServerBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@

namespace Bankiru\Api\Rpc;

use Bankiru\Api\Rpc\DependencyInjection\BankiruRpcServerExtension;
use Bankiru\Api\Rpc\DependencyInjection\Compiler\RouterLoaderPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

class RpcBundle extends Bundle
final class BankiruRpcServerBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new RouterLoaderPass());
}

public function getContainerExtension()
{
return new BankiruRpcServerExtension();
}
}
Loading