├── .gitignore ├── .php-cs-fixer.dist.php ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── composer.json ├── phpunit.xml.dist ├── src ├── FakeHookCaller.php ├── Hook │ ├── AbstractHook.php │ ├── ActionInterface.php │ ├── Annotations │ │ ├── Action.php │ │ └── Filter.php │ ├── Attributes │ │ ├── Action.php │ │ └── Filter.php │ └── FilterInterface.php ├── HookAttributesManager.php ├── HookCallerInterface.php ├── HookResolver.php ├── MethodIsNotStaticException.php ├── PsrCachedAnnotationReader.php ├── WordPressFunctionDoesNotExistException.php ├── WordPressHookAttributes.php └── WordPressHookCaller.php ├── tests ├── HookAttributesManagerTest.php ├── HookResolverFactory.php ├── HookResolverTest.php ├── Integration │ ├── .env.dist │ ├── HooksIntegrationTest.php │ ├── Resources │ │ ├── post-init-functions.php │ │ ├── pre-init-functions.php │ │ └── required-post-init-functions.php │ ├── create-test-db.sh │ └── wp-tests-config.php ├── PsrCachedAnnotationReaderTest.php ├── Resources │ ├── Example.php │ ├── ExampleObject.php │ ├── ExampleWithNoNamespace.php │ ├── Sub │ │ ├── Example.php │ │ └── functions.php │ ├── functions-two.php │ └── functions.php ├── WordPressHookCallerTest.php └── bootstrap.php ├── tools └── php-cs-fixer │ └── composer.json └── wp-hook-attributes.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/.gitignore -------------------------------------------------------------------------------- /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/.php-cs-fixer.dist.php -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/.travis.yml -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/FakeHookCaller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/FakeHookCaller.php -------------------------------------------------------------------------------- /src/Hook/AbstractHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/AbstractHook.php -------------------------------------------------------------------------------- /src/Hook/ActionInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/ActionInterface.php -------------------------------------------------------------------------------- /src/Hook/Annotations/Action.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/Annotations/Action.php -------------------------------------------------------------------------------- /src/Hook/Annotations/Filter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/Annotations/Filter.php -------------------------------------------------------------------------------- /src/Hook/Attributes/Action.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/Attributes/Action.php -------------------------------------------------------------------------------- /src/Hook/Attributes/Filter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/Attributes/Filter.php -------------------------------------------------------------------------------- /src/Hook/FilterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/Hook/FilterInterface.php -------------------------------------------------------------------------------- /src/HookAttributesManager.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/HookAttributesManager.php -------------------------------------------------------------------------------- /src/HookCallerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/HookCallerInterface.php -------------------------------------------------------------------------------- /src/HookResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/HookResolver.php -------------------------------------------------------------------------------- /src/MethodIsNotStaticException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/MethodIsNotStaticException.php -------------------------------------------------------------------------------- /src/PsrCachedAnnotationReader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/PsrCachedAnnotationReader.php -------------------------------------------------------------------------------- /src/WordPressFunctionDoesNotExistException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/WordPressFunctionDoesNotExistException.php -------------------------------------------------------------------------------- /src/WordPressHookAttributes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/WordPressHookAttributes.php -------------------------------------------------------------------------------- /src/WordPressHookCaller.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/src/WordPressHookCaller.php -------------------------------------------------------------------------------- /tests/HookAttributesManagerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/HookAttributesManagerTest.php -------------------------------------------------------------------------------- /tests/HookResolverFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/HookResolverFactory.php -------------------------------------------------------------------------------- /tests/HookResolverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/HookResolverTest.php -------------------------------------------------------------------------------- /tests/Integration/.env.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/.env.dist -------------------------------------------------------------------------------- /tests/Integration/HooksIntegrationTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/HooksIntegrationTest.php -------------------------------------------------------------------------------- /tests/Integration/Resources/post-init-functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/Resources/post-init-functions.php -------------------------------------------------------------------------------- /tests/Integration/Resources/pre-init-functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/Resources/pre-init-functions.php -------------------------------------------------------------------------------- /tests/Integration/Resources/required-post-init-functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/Resources/required-post-init-functions.php -------------------------------------------------------------------------------- /tests/Integration/create-test-db.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/create-test-db.sh -------------------------------------------------------------------------------- /tests/Integration/wp-tests-config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Integration/wp-tests-config.php -------------------------------------------------------------------------------- /tests/PsrCachedAnnotationReaderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/PsrCachedAnnotationReaderTest.php -------------------------------------------------------------------------------- /tests/Resources/Example.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/Example.php -------------------------------------------------------------------------------- /tests/Resources/ExampleObject.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/ExampleObject.php -------------------------------------------------------------------------------- /tests/Resources/ExampleWithNoNamespace.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/ExampleWithNoNamespace.php -------------------------------------------------------------------------------- /tests/Resources/Sub/Example.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/Sub/Example.php -------------------------------------------------------------------------------- /tests/Resources/Sub/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/Sub/functions.php -------------------------------------------------------------------------------- /tests/Resources/functions-two.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/functions-two.php -------------------------------------------------------------------------------- /tests/Resources/functions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/Resources/functions.php -------------------------------------------------------------------------------- /tests/WordPressHookCallerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/WordPressHookCallerTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /tools/php-cs-fixer/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/tools/php-cs-fixer/composer.json -------------------------------------------------------------------------------- /wp-hook-attributes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/boxuk/wp-hook-attributes/HEAD/wp-hook-attributes.php --------------------------------------------------------------------------------