Skip to content

Commit

Permalink
latest changes, dependencies tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
sklabinsky committed Feb 19, 2019
1 parent fca9d81 commit ef03cee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class EndpointRouterCompilerPass implements CompilerPassInterface
{
const CONTROLLER_SUFFIX = 'Controller';
const ACTION_SUFFIX = 'Action';
const EXCLUDES_IN_VENDOR = [
'symfony/framework-bundle'
];

/**
* You can modify the container here before it is dumped to PHP code.
Expand All @@ -41,6 +44,7 @@ public function process(ContainerBuilder $container)
$finder = new Finder();
$finder->name(sprintf('*%s.php', self::CONTROLLER_SUFFIX));
$finder->in($paths);
$finder->exclude(self::EXCLUDES_IN_VENDOR);

foreach ($finder as $file)
{
Expand Down
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,6 @@ endpoints:
resource: "@Auto1ServiceAPIHandlerBundle/Resources/config/routing.yml"
```
### Composer
You will need to add this to your composer.json:
```json
"repositories": [
{
"type": "git",
"url": "[email protected]:auto1-oss/service-api-request.git"
},
{
"type": "git",
"url": "[email protected]:auto1-oss/service-api-components-bundle.git"
},
{
"type": "git",
"url": "[email protected]:auto1-oss/service-api-handler-bundle.git"
}
]
```

## Description
Use Endpoints specifications to handle symfony request flow.
Expand Down
16 changes: 3 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
],
"require": {
"php": ">=7.0.8",
"auto1-oss/service-api-request": "dev-master",
"auto1-oss/service-api-components-bundle": "dev-master",
"auto1-oss/service-api-request": "^1.0",
"auto1-oss/service-api-components-bundle": "^1.0",
"symfony/serializer" : "~3.0|~4.0",
"symfony/monolog-bridge": "~3.0|~4.0",
"symfony/dependency-injection": "~3.0|~4.0",
Expand All @@ -34,15 +34,5 @@
},
"autoload": {
"psr-4": { "Auto1\\ServiceAPIHandlerBundle\\": "" }
},
"repositories": [
{
"type": "git",
"url": "[email protected]:auto1-oss/service-api-request.git"
},
{
"type": "git",
"url": "[email protected]:auto1-oss/service-api-components-bundle.git"
}
]
}
}

0 comments on commit ef03cee

Please sign in to comment.