Skip to content

Commit

Permalink
[DI] drop Nette packages
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 9, 2017
1 parent 46a8881 commit 4dbb7de
Show file tree
Hide file tree
Showing 23 changed files with 26 additions and 430 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -41,7 +41,7 @@ vendor/bin/apigen generate src tests --destination docs

## Configuration

Below is a minimal example configuration. Save it as a `apigen.neon` file in
Below is a minimal example configuration. Save it as a `apigen.yml` file in
the root of your project:

```yaml
Expand Down Expand Up @@ -110,7 +110,7 @@ This is already mentioned on Wiki.

## Themes

To enable a custom theme just provide `themeDirectory` configuration option in your `apigen.neon`:
To enable a custom theme just provide `themeDirectory` configuration option in your `apigen.yml`:

```yaml
parameters:
Expand Down
4 changes: 0 additions & 4 deletions apigen.neon

This file was deleted.

5 changes: 0 additions & 5 deletions composer.json
Expand Up @@ -16,14 +16,9 @@
"kukulich/fshl": "^2.1",

"latte/latte": "^2.4",
"nette/bootstrap": "^2.4",
"nette/di": "^2.4",
"nette/neon": "^2.4",

"contributte/console": "^0.1",
"contributte/event-dispatcher": "^0.3",
"symplify/package-builder": "dev-master as 1.4",
"symplify/modular-latte-filters": "^1.4",
"symfony/dependency-injection": "^3.3",
"symfony/http-kernel": "^3.3",
"symfony/config": "^3.3",
Expand Down
30 changes: 0 additions & 30 deletions packages/Annotation/src/DI/AnnotationExtension.php

This file was deleted.

Expand Up @@ -3,15 +3,15 @@
namespace ApiGen\Annotation\Latte\Filter;

use ApiGen\Annotation\AnnotationDecorator;
use ApiGen\Contract\Templating\FilterProviderInterface;
use ApiGen\Event\ProcessDocTextEvent;
use ApiGen\Reflection\Contract\Reflection\AbstractReflectionInterface;
use ApiGen\Reflection\Contract\Reflection\Partial\AnnotationsInterface;
use Nette\InvalidArgumentException;
use phpDocumentor\Reflection\DocBlock\Tag;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symplify\ModularLatteFilters\Contract\DI\LatteFiltersProviderInterface;

final class AnnotationFilterProvider implements LatteFiltersProviderInterface
final class AnnotationFilterProvider implements FilterProviderInterface
{
/**
* @var EventDispatcherInterface
Expand Down
15 changes: 0 additions & 15 deletions packages/Annotation/src/config/services.neon

This file was deleted.

30 changes: 0 additions & 30 deletions packages/Element/src/DI/ElementExtension.php

This file was deleted.

Expand Up @@ -2,12 +2,12 @@

namespace ApiGen\Element\Latte\Filter;

use ApiGen\Contract\Templating\FilterProviderInterface;
use ApiGen\Reflection\Contract\Reflection\Class_\ClassMethodReflectionInterface;
use ApiGen\Reflection\Contract\Reflection\Interface_\InterfaceMethodReflectionInterface;
use ApiGen\Reflection\Contract\Reflection\Trait_\TraitMethodReflectionInterface;
use Symplify\ModularLatteFilters\Contract\DI\LatteFiltersProviderInterface;

final class MethodReflectionNamingFilter implements LatteFiltersProviderInterface
final class MethodReflectionNamingFilter implements FilterProviderInterface
{
/**
* @return callable[]
Expand Down
20 changes: 0 additions & 20 deletions packages/Element/src/config/services.neon

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions packages/ModularConfiguration/src/config/services.neon

This file was deleted.

30 changes: 0 additions & 30 deletions packages/Reflection/src/DI/ReflectionExtension.php

This file was deleted.

28 changes: 0 additions & 28 deletions packages/Reflection/src/config/services.neon

This file was deleted.

30 changes: 0 additions & 30 deletions packages/StringRouting/src/DI/StringRoutingExtension.php

This file was deleted.

Expand Up @@ -2,15 +2,15 @@

namespace ApiGen\StringRouting\Latte\Filter;

use ApiGen\Contract\Templating\FilterProviderInterface;
use ApiGen\Reflection\Contract\Reflection\AbstractReflectionInterface;
use ApiGen\StringRouting\Route\NamespaceRoute;
use ApiGen\StringRouting\Route\ReflectionRoute;
use ApiGen\StringRouting\Route\SourceCodeRoute;
use ApiGen\StringRouting\StringRouter;
use Nette\InvalidArgumentException;
use Symplify\ModularLatteFilters\Contract\DI\LatteFiltersProviderInterface;

final class StringRoutingFiltersProvider implements LatteFiltersProviderInterface
final class StringRoutingFiltersProvider implements FilterProviderInterface
{
/**
* @var StringRouter
Expand Down
9 changes: 0 additions & 9 deletions packages/StringRouting/src/config/services.neon

This file was deleted.

11 changes: 11 additions & 0 deletions src/Contract/Templating/FilterProviderInterface.php
@@ -0,0 +1,11 @@
<?php declare(strict_types=1);

namespace ApiGen\Contract\Templating;

interface FilterProviderInterface
{
/**
* @return callable[]
*/
public function getFilters(): array;
}

0 comments on commit 4dbb7de

Please sign in to comment.