Skip to content

Commit

Permalink
some doc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittjoh committed Oct 1, 2012
1 parent 20f48d9 commit fb03e55
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions Aop/InterceptorLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class InterceptorLoader implements InterceptorLoaderInterface
private $interceptors;
private $loadedInterceptors = array();

/**
* @param ContainerInterface $container
* @param array<array<string>> $interceptors
*/
public function __construct(ContainerInterface $container, array $interceptors)
{
$this->container = $container;
Expand Down
3 changes: 3 additions & 0 deletions Aop/PointcutContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ final class PointcutContainer
{
private $pointcuts;

/**
* @param array<PointcutInterface> $pointcuts
*/
public function __construct(array $pointcuts)
{
$this->pointcuts = $pointcuts;
Expand Down
3 changes: 3 additions & 0 deletions Aop/RegexPointcut.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class RegexPointcut implements PointcutInterface
{
private $pattern;

/**
* @param array<string> $pattern
*/
public function __construct($pattern)
{
$this->pattern = $pattern;
Expand Down
13 changes: 8 additions & 5 deletions DependencyInjection/Compiler/PointcutMatchingPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
namespace JMS\AopBundle\DependencyInjection\Compiler;

use CG\Core\ClassUtils;

use JMS\AopBundle\Exception\RuntimeException;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\Reference;
Expand All @@ -28,6 +27,7 @@
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use JMS\AopBundle\Aop\PointcutInterface;

/**
* Matches pointcuts against service methods.
Expand All @@ -43,6 +43,9 @@ class PointcutMatchingPass implements CompilerPassInterface
private $cacheDir;
private $container;

/**
* @param array<PointcutInterface> $pointcuts
*/
public function __construct(array $pointcuts = null)
{
$this->pointcuts = $pointcuts;
Expand Down Expand Up @@ -70,8 +73,8 @@ public function process(ContainerBuilder $container)
}

/**
* @param array $pointcuts
* @param array $interceptors
* @param array<PointcutInterface> $pointcuts
* @param array<string,string> $interceptors
*/
private function processInlineDefinitions($pointcuts, &$interceptors, array $a)
{
Expand All @@ -85,8 +88,8 @@ private function processInlineDefinitions($pointcuts, &$interceptors, array $a)
}

/**
* @param array $pointcuts
* @param array $interceptors
* @param array<PointcutInterface> $pointcuts
* @param array<string,string> $interceptors
*/
private function processDefinition(Definition $definition, $pointcuts, &$interceptors)
{
Expand Down

0 comments on commit fb03e55

Please sign in to comment.