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

2.x #75

Open
wants to merge 218 commits into
base: master
Choose a base branch
from
Open

2.x #75

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
f26a0f5
Adding dependencies checks
shcherbanich Nov 6, 2023
c045573
Adding method to get traits
shcherbanich Nov 6, 2023
8c598ee
Adding return type
shcherbanich Nov 7, 2023
a7d93e1
Removing declaring class info
shcherbanich Nov 7, 2023
d55b6c3
Adding method to get AST
shcherbanich Nov 7, 2023
1e87a7d
Using new method to get implementing class
shcherbanich Nov 7, 2023
c348a45
Using PHP-Parser instead of BetterReflection
shcherbanich Nov 7, 2023
82fe0dd
Using AST instead of Reflection
shcherbanich Nov 7, 2023
323e3b1
Fixing constant entity problems
shcherbanich Nov 7, 2023
5aba523
Adding modifiers flags
shcherbanich Nov 9, 2023
6484613
Adding checks
shcherbanich Nov 9, 2023
a96fc96
Removing ReflectionException
shcherbanich Nov 9, 2023
1254ac0
Removing old exceptions doc
shcherbanich Nov 9, 2023
871af18
Handle ast position
shcherbanich Nov 9, 2023
0613eb4
Ast getter optimization
shcherbanich Nov 9, 2023
123fe7e
Disable builtin classes loading
shcherbanich Nov 9, 2023
84a6ed3
Adding new event
shcherbanich Nov 9, 2023
7896a04
Adding php parser helper
shcherbanich Nov 9, 2023
c1f6d4e
Adding new value compiler
shcherbanich Nov 10, 2023
06de4b3
Using new value compiler
shcherbanich Nov 10, 2023
ddb1579
Removing reflection exception
shcherbanich Nov 10, 2023
853b819
Adding new implode function
shcherbanich Nov 10, 2023
873078e
Adding new composer parser methods
shcherbanich Nov 10, 2023
48b5d8b
Optimizing ParserHelper
shcherbanich Nov 10, 2023
b0e6d76
Updating template
shcherbanich Nov 10, 2023
2b0e8cb
Using phpParser instead of BetterReflection
shcherbanich Nov 10, 2023
040e9df
Removing old reflector wrapper
shcherbanich Nov 10, 2023
22d5efe
Removing old source locators
shcherbanich Nov 10, 2023
9f395a0
Removing old data
shcherbanich Nov 10, 2023
54c3fb5
Removing old cache item pool
shcherbanich Nov 10, 2023
b69f0d1
Removing BetterReflection lib
shcherbanich Nov 10, 2023
c3ae862
Fixing tests
shcherbanich Nov 10, 2023
6185f3d
New lib version
shcherbanich Nov 10, 2023
4237479
Handle more expressions in NodeValueCompiler
shcherbanich Nov 13, 2023
8854cb0
Use new value compiler
shcherbanich Nov 13, 2023
e2835aa
Removing old methods
shcherbanich Nov 13, 2023
a2d890e
Using node position
shcherbanich Nov 13, 2023
4df5be3
Adding value getter to a constant entity
shcherbanich Nov 13, 2023
2a529e5
Changing array compilation logic
shcherbanich Nov 13, 2023
ea5ad26
Fixing key error
shcherbanich Nov 13, 2023
c42b268
Adding common method to get relative file name
shcherbanich Nov 13, 2023
edc27cd
Changing class name check condition
shcherbanich Nov 13, 2023
4dbbc02
Changing composer parser name
shcherbanich Nov 13, 2023
3788176
Fixing filename getter
shcherbanich Nov 13, 2023
7293001
Fixing parent classes names getter
shcherbanich Nov 13, 2023
70219ed
Changing Namespace_ class alias
shcherbanich Nov 13, 2023
e370402
Adding iterable type
shcherbanich Nov 13, 2023
62a195e
Fixing template
shcherbanich Nov 13, 2023
83c2fb0
Removing old code
shcherbanich Nov 13, 2023
419c577
Fixing formatting
shcherbanich Nov 13, 2023
ecfa5d0
Process only php files
shcherbanich Nov 13, 2023
49a4db0
Changing phpParser helper namespace
shcherbanich Nov 13, 2023
e0c235a
Removing debug info
shcherbanich Nov 13, 2023
3d9b524
Updating templates
shcherbanich Nov 13, 2023
192e069
Adding comments
shcherbanich Nov 13, 2023
f67fa17
Updating doc
shcherbanich Nov 13, 2023
7dc3d38
Removing old event
shcherbanich Nov 13, 2023
cff7a77
Updating doc
shcherbanich Nov 13, 2023
2763afa
Adding UPGRADE info
shcherbanich Nov 14, 2023
e90deb1
Removing old config param
shcherbanich Nov 14, 2023
3bfb4f2
Adding class map loader config
shcherbanich Nov 14, 2023
85a9311
Changing entities namespaces
shcherbanich Nov 14, 2023
5b52048
Merge pull request #67 from bumble-tech/changing_betterReflection_to_…
shcherbanich Nov 20, 2023
99daea2
Using different entities for different class types
shcherbanich Nov 20, 2023
dd00cc7
Moving sub entities to a new namespace
shcherbanich Nov 20, 2023
48a0683
Adding relativeFileName getter
shcherbanich Nov 20, 2023
2033d5d
Optimizing collection filtering methods
shcherbanich Nov 20, 2023
e961772
Refactor methods to get filenames
shcherbanich Nov 20, 2023
c9cf6bf
Renaming method to check whether the entity can be loaded or not
shcherbanich Nov 20, 2023
92eb783
Renaming method to check can entity be documented or not
shcherbanich Nov 20, 2023
0f157f5
Changing phpEntities key
shcherbanich Nov 20, 2023
9632f50
Renaming entities collections
shcherbanich Nov 20, 2023
d7a21cf
Renaming root collections
shcherbanich Nov 20, 2023
9e30dc5
Fixing link
shcherbanich Nov 20, 2023
0bd9a8b
Adding descriptions
shcherbanich Nov 20, 2023
1246c6a
Adding new features for working with class methods
shcherbanich Nov 20, 2023
2b6264b
Adding new features for working with class methods
shcherbanich Nov 20, 2023
0ac85f4
Adding new features for working with class methods
shcherbanich Nov 20, 2023
efe619a
Adding description
shcherbanich Nov 20, 2023
5f0b3d6
Renaming method to check entity cache
shcherbanich Nov 20, 2023
92dfb3d
Fixing check cache bug
shcherbanich Nov 20, 2023
0f17c1a
Removing method duplicate
shcherbanich Nov 20, 2023
5ba98ce
Marking API methods
shcherbanich Nov 20, 2023
5001138
Removing duplicate method
shcherbanich Nov 20, 2023
20e52f0
Moving method to work with doc block to the base entity
shcherbanich Nov 20, 2023
4db778d
Moving method to get description to the base entity
shcherbanich Nov 20, 2023
0a9d173
Removing old code
shcherbanich Nov 20, 2023
0daa0c9
Removing old code
shcherbanich Nov 20, 2023
942efba
Removing old method to get php handler settings
shcherbanich Nov 20, 2023
a3a1433
Refactor class constants
shcherbanich Nov 21, 2023
a51c03d
Refactor method entities
shcherbanich Nov 21, 2023
f93a92e
Adding doc comment
shcherbanich Nov 21, 2023
c485026
Removing old code
shcherbanich Nov 21, 2023
3552d13
Refactor methods
shcherbanich Nov 21, 2023
f8287a9
Adding descriptions
shcherbanich Nov 21, 2023
09ee4d5
Removing old code
shcherbanich Nov 21, 2023
0d95b52
Refactor properties
shcherbanich Nov 22, 2023
1d5494d
Adding dock blocks
shcherbanich Nov 22, 2023
671da5c
Removing old code
shcherbanich Nov 22, 2023
39ae3c0
Adding class name normalizer
shcherbanich Nov 23, 2023
69e4253
Using class name normalizer
shcherbanich Nov 23, 2023
5b0f505
Fixing the display of names of parent classes and interfaces
shcherbanich Nov 23, 2023
c33561b
Renaming event
shcherbanich Nov 23, 2023
f2a2d5b
Updating plugin system
shcherbanich Nov 23, 2023
7a09167
Renaming event
shcherbanich Nov 23, 2023
78dbac4
Changing doc block links getters
shcherbanich Nov 24, 2023
07895c7
Fixing methods names
shcherbanich Nov 24, 2023
d4a39d5
Renaming event
shcherbanich Nov 24, 2023
663bb34
Optimizing adding entities to a collection
shcherbanich Nov 26, 2023
77f1746
Removing old method
shcherbanich Nov 26, 2023
5b80097
Adding description
shcherbanich Nov 26, 2023
5e4d1af
Refactor methods to get entities
shcherbanich Nov 26, 2023
c506939
Check to see if a class is an attribute
shcherbanich Nov 26, 2023
f7c052f
Adding generic annotations
shcherbanich Nov 26, 2023
c4a923f
Make it possible to pass objects to the configuration
shcherbanich Nov 28, 2023
0981214
Adding a way to disable caching: it is no longer necessary to specify…
shcherbanich Nov 28, 2023
430b141
Adding a method to display entities as an array
shcherbanich Nov 28, 2023
a552609
Changing parsing method
shcherbanich Nov 28, 2023
5f19454
Changing dependencies
shcherbanich Nov 29, 2023
dd5eb72
Adding method to load entities
shcherbanich Nov 29, 2023
d21c1e7
Adding base reflection API config
shcherbanich Nov 29, 2023
9df3810
Adding reflection API
shcherbanich Nov 29, 2023
3825613
Using composer vendor dir instead of installed json path
shcherbanich Nov 29, 2023
1b84129
Adding php reflection API config
shcherbanich Nov 29, 2023
f850eab
Fixing entities counters
shcherbanich Nov 29, 2023
569f431
Changing loading entities algo
shcherbanich Nov 29, 2023
2b43b57
Changing the logic of the progress bar
shcherbanich Nov 29, 2023
efeaba1
Adding reflection API demo
shcherbanich Nov 29, 2023
9b68adf
Adding method to check API doc block
shcherbanich Dec 15, 2023
e075764
Adding function to display API methods
shcherbanich Dec 15, 2023
1526cc0
Adding reflection API documentation
shcherbanich Dec 15, 2023
765f135
Adding examples
shcherbanich Dec 15, 2023
4a557f7
Adding reflection API documentation
shcherbanich Dec 15, 2023
c6345ce
Updating templates
shcherbanich Dec 16, 2023
b34176b
Changing output format
shcherbanich Dec 16, 2023
ef5e35d
Fixing api tags
shcherbanich Dec 16, 2023
9f4779a
Updating doc blocks
shcherbanich Dec 16, 2023
35771ed
Adding description
shcherbanich Dec 16, 2023
49fa36c
Removing old code
shcherbanich Dec 16, 2023
c9596a2
Removing old method
shcherbanich Dec 16, 2023
98869f1
Updating doc
shcherbanich Dec 16, 2023
0e30ec5
Renaming method to get collection
shcherbanich Dec 18, 2023
e4d5b3b
Fixing endpoints API documentation
shcherbanich Dec 18, 2023
c321725
Updating UPGRADE info
shcherbanich Dec 19, 2023
cb8049b
Using call_user_func instead of call_user_func_array
shcherbanich Dec 19, 2023
373eeba
Update src/Core/Parser/Entity/CollectionLogOperation/OperationsCollec…
shcherbanich Dec 19, 2023
37ac5ed
Fixing Null pointer errors
shcherbanich Dec 19, 2023
5a183ef
Merge remote-tracking branch 'origin/refactoring_php_entities' into r…
shcherbanich Dec 19, 2023
ff37569
Adding more examples; Updating doc
shcherbanich Dec 19, 2023
0d0e4e3
Merge pull request #68 from bumble-tech/refactoring_php_entities
shcherbanich Dec 19, 2023
ab642fd
Merge master
shcherbanich Dec 19, 2023
74f2c4c
Updating doc
shcherbanich Dec 19, 2023
7f345bc
Changing min php version to 8.1
shcherbanich Dec 21, 2023
dd175dc
Updating doc
shcherbanich Dec 21, 2023
9c67fda
Merge pull request #70 from bumble-tech/changing_php_version
shcherbanich Dec 21, 2023
21bb0bb
Fixing unified plugin error
shcherbanich Dec 22, 2023
25633cf
Adding FrontMatterLoader
shcherbanich Dec 23, 2023
7d03318
Fixing error text
shcherbanich Dec 23, 2023
136ffc1
Using new loader
shcherbanich Dec 23, 2023
a6fe458
Using FrontMatter instead of old variables
shcherbanich Dec 23, 2023
b1f94e5
Updating templates
shcherbanich Dec 23, 2023
b034a26
Using FrontMatter instead of old variables
shcherbanich Dec 23, 2023
4b0e10d
Updating doc
shcherbanich Dec 23, 2023
3e81060
Updating UPGRADE.md
shcherbanich Dec 23, 2023
18f5699
Merge pull request #71 from bumble-tech/adding_fromt_matter
shcherbanich Dec 23, 2023
772102d
Merge branch '2.x' into adding_html_generator
shcherbanich Jan 8, 2024
1b620a1
Adding new event to handle entity doc files
shcherbanich Jan 8, 2024
9d7cc94
Adding new option to render front matter
shcherbanich Jan 8, 2024
aa561ae
Adding new option to render front matter
shcherbanich Jan 8, 2024
6240de0
Made it possible to change the name of the generated doc file
shcherbanich Jan 8, 2024
d611035
Fixing method to get new doc file path
shcherbanich Jan 8, 2024
6be9a32
Adding dynamic templates mode
shcherbanich Jan 8, 2024
0f5745d
Fixing remove old file errors
shcherbanich Jan 8, 2024
9c265a1
Adding Daux plugin
shcherbanich Jan 8, 2024
c4ebdc3
Adding Daux lib
shcherbanich Jan 8, 2024
e7006ec
Fixing dynamicTemplatesMode custom template error
shcherbanich Jan 8, 2024
83e5ec9
Adding new method to serve documentation
shcherbanich Jan 8, 2024
399b6e5
Adding serve documentation command
shcherbanich Jan 8, 2024
bd37fd6
Removing old template
shcherbanich Jan 8, 2024
3a63fd1
Adding method to get configuration
shcherbanich Jan 9, 2024
7c468f8
Adding option to generate html doc
shcherbanich Jan 9, 2024
e0a926f
Disabling render_with_front_matter by default
shcherbanich Jan 9, 2024
7a0216f
Fixing urls
shcherbanich Jan 9, 2024
8793e12
Fixing html generation errors
shcherbanich Jan 9, 2024
dc31df1
Fixing serve errors
shcherbanich Jan 10, 2024
c4c8c0d
Now ypu can use template file name to get the link
shcherbanich Jan 10, 2024
42aaadf
Changing structure
shcherbanich Jan 10, 2024
9eae4da
Changing structure
shcherbanich Jan 10, 2024
3faa005
Adding a new documentation page about working with the console app
shcherbanich Jan 11, 2024
282261f
Using new func
shcherbanich Jan 11, 2024
de11f83
Fix selfdoc formatting
shcherbanich Jan 11, 2024
2bc8b0a
Fix short link version bug
shcherbanich Jan 11, 2024
f472400
Fixing formatting
shcherbanich Jan 11, 2024
6757c36
Updating doc
shcherbanich Jan 11, 2024
0b60d62
Adding page about doc debugging
shcherbanich Jan 11, 2024
a218e58
Adding method to clear all local cache
shcherbanich Jan 11, 2024
e98d639
Fix for potential wrapper override bug
shcherbanich Jan 11, 2024
857ec9d
Changing the live documentation generation system
shcherbanich Jan 11, 2024
fd34cf5
Updating doc
shcherbanich Jan 11, 2024
8f443d2
Fix life update doc removing
shcherbanich Jan 11, 2024
199a75e
Adding method to remove records
shcherbanich Jan 11, 2024
1b86c41
Adding method to display errors
shcherbanich Jan 11, 2024
96d9612
Fixing breadcrumbs file dependency checker
shcherbanich Jan 11, 2024
ee229f7
Fixing template
shcherbanich Jan 11, 2024
ffb332c
Updating doc
shcherbanich Jan 11, 2024
43b0597
Fixing linking description
shcherbanich Jan 11, 2024
e29235c
Updating doc
shcherbanich Jan 12, 2024
d24bb38
Updating doc
shcherbanich Jan 12, 2024
22ec58a
Changing method to load cache
shcherbanich Jan 15, 2024
dff226c
Adding method to remove all not loaded entities from collection
shcherbanich Jan 15, 2024
0b5c11d
Changing method to handle errors
shcherbanich Jan 15, 2024
b7afaa9
Updating doc
shcherbanich Jan 15, 2024
14a7ce9
Merge pull request #72 from bumble-tech/adding_html_generator
shcherbanich Jan 16, 2024
317410c
Changelog for 2.0.0
seanmcn Apr 5, 2024
fe82104
Update security policy for 2.0.x
seanmcn Apr 5, 2024
09782d2
Add frontmatter to feature list of changelog
seanmcn Apr 5, 2024
e6c59c6
Updates GitHub build to use PHP 8.1
seanmcn Apr 5, 2024
472597e
Update to demo 1 config
seanmcn May 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ "master"]
pull_request:
branches: [ "1.x.x" ]
branches: [ "1.x.x", "2.x.x" ]

permissions:
contents: read
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1

- name: Validate composer.json and composer.lock
run: composer validate --strict
Expand Down
51 changes: 44 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,52 @@
# Changelog
# [1.6.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.6.0)
## [2.0.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.6.0)
### Features
- Adds the ability to generate HTML documentation + live mode for previewing changes.
- Templates now use Frontmatter instead of variables

### Breaking Changes
- ⚠️ Minimum PHP version is now 8.1
- ⚠️ Changes when working with templates:
- Variable `phpClassEntityCollection` renamed to `phpEntities`
- Instead of variables in the template with title and previous page, the Front Matter block is used
- ⚠️ PHP ReflectionAPI has been completely changed. See information about the current version here: [ReflectionAPI](https://github.com/bumble-tech/bumble-doc-gen/tree/master/docs/tech/2.parser/reflectionApi)
- The BetterReflection library and classes that depend on it in the code have been removed:
- `\BumbleDocGen\Core\Cache\SourceLocatorCacheItemPool`
- `\BumbleDocGen\Core\Plugin\Event\Parser\OnLoadSourceLocatorsCollection`
- `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\Exception\ReflectionException`
- `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\Reflection\ReflectorWrapper`
- `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\AsyncSourceLocator`
- `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\CustomSourceLocatorInterface`
- `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\Internal\CachedSourceLocator`
- `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\Internal\SystemAsyncSourceLocator`
- Class `\BumbleDocGen\LanguageHandler\Php\Parser\ComposerParser` renamed to `\BumbleDocGen\LanguageHandler\Php\Parser\ComposerHelper`
- Doc block parsing has been removed:
- `\Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()`
- `\Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()`
- `\Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()`
- `\Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()`
- `\Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()`
- `\Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()`
- Method `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity::hasAnnotationKey()` has been removed.
- Method `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity::getExtends()` has been removed.
- Method `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity::getInterfacesString()` has been removed.
- Now documentation for built classes does not load automatically
- Removed the `async_source_loading_enabled` configuration option (Method `\BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings::asyncSourceLoadingEnabled()`)
- Class `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\AfterLoadingClassEntityCollection` has been removed. Use `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\AfterLoadingPhpEntitiesCollection` instead.
- Class `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\OnCheckIsClassEntityCanBeLoad` has been removed. Use `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\OnCheckIsEntityCanBeLoaded`
- Method `\BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings::getComposerInstalledFile()` renamed to `\BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings::getComposerVendorDir()`

## [1.6.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.6.0)
- Updating composer scripts [#66](https://github.com/bumble-tech/bumble-doc-gen/pull/66)
- Configuration console command [#54](https://github.com/bumble-tech/bumble-doc-gen/pull/54)

# [1.5.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.5.0)
## [1.5.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.5.0)
- Caching system refactoring [#62](https://github.com/bumble-tech/bumble-doc-gen/pull/62)
- Ai refactor [#61](https://github.com/bumble-tech/bumble-doc-gen/pull/61)
- Optimization of the caching and error handling [#63](https://github.com/bumble-tech/bumble-doc-gen/pull/63)
- Fixing generation problems [#64](https://github.com/bumble-tech/bumble-doc-gen/pull/64)

# [1.4.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.4.0)
## [1.4.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.4.0)
- Fixed config errors [#52](https://github.com/bumble-tech/bumble-doc-gen/pull/52)
- Fixed method type getter bug [#53](https://github.com/bumble-tech/bumble-doc-gen/pull/53)
- Changed errors output [#55](https://github.com/bumble-tech/bumble-doc-gen/pull/55)
Expand All @@ -18,14 +55,14 @@
- Changed default plugins list [#57](https://github.com/bumble-tech/bumble-doc-gen/pull/57)
- Fixed link finder errors [#59](https://github.com/bumble-tech/bumble-doc-gen/pull/59)

# [1.3.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.3.0)
## [1.3.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.3.0)
- Add Unit Tests for BumbleDocGen\Core\Configuration\ValueTransformer [#45](https://github.com/bumble-tech/bumble-doc-gen/pull/45)
- Add Unit Tests for ValueResolver Namespace [#47](https://github.com/bumble-tech/bumble-doc-gen/pull/47)
- Adding entity doc generation modes [#46](https://github.com/bumble-tech/bumble-doc-gen/pull/46)
- Adding new filter condition [#50](https://github.com/bumble-tech/bumble-doc-gen/pull/50)
- Removing empty doc dirs [#49](https://github.com/bumble-tech/bumble-doc-gen/pull/49)

# [1.2.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.2.0)
## [1.2.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.2.0)
- Fixing contributing rules [#9](https://github.com/bumble-tech/bumble-doc-gen/pull/9)
- Adds issue templates for Bug reports & feature requests [#13](https://github.com/bumble-tech/bumble-doc-gen/pull/13)
- Adds Code of Conduct & PR template [#15](https://github.com/bumble-tech/bumble-doc-gen/pull/15)
Expand All @@ -39,10 +76,10 @@
- Removing ocramius proxy manager [#37](https://github.com/bumble-tech/bumble-doc-gen/pull/37)
- Use shared cache option [#38](https://github.com/bumble-tech/bumble-doc-gen/pull/38)

# [1.1.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.1.0)
## [1.1.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.1.0)
- Implementation of the ability to add custom commands to a standard console application [#4](https://github.com/bumble-tech/bumble-doc-gen/pull/4)
- Fixing console app bugs [#5](https://github.com/bumble-tech/bumble-doc-gen/pull/5)
- Adding new console commands [#6](https://github.com/bumble-tech/bumble-doc-gen/pull/6)

# [1.0.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.0.0)
## [1.0.0](https://github.com/bumble-tech/bumble-doc-gen/releases/tag/v1.0.0)
- First public version of documentation generator.
41 changes: 26 additions & 15 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
# Security Policy

Your security is of utmost importance to us. This document outlines our commitment to ensuring that our software remains secure, how we handle vulnerabilities, and what you can do if you find one.
Your security is of utmost importance to us. This document outlines our commitment to ensuring that our software remains
secure, how we handle vulnerabilities, and what you can do if you find one.

## Supported Versions

Security updates will be applied to certain versions of our software. Please refer to the table below to understand which versions are currently supported for security patches.
Security updates will be applied to certain versions of our software. Please refer to the table below to understand
which versions are currently supported for security patches.

| Version | Supported | Notes |
|---------|--------------------|----------------------------------------|
| 1.6.x | :white_check_mark: | Current version, fully supported. |
| 1.5.x | :x: | Not supported, please upgrade to 1.6.x |
| 1.4.x | :x: | Not supported, please upgrade to 1.6.x |
| 1.3.x | :x: | Not supported, please upgrade to 1.6.x |
| 1.2.x | :x: | Not supported, please upgrade to 1.6.x |
| 1.1.x | :x: | Not supported, please upgrade to 1.6.x |
| 1.0.x | :x: | Not supported, please upgrade to 1.6.x |
| 2.0.x | :white_check_mark: | Current version, fully supported. |
| 1.6.x | :x: | Not supported, please upgrade to 2.0.x |
| 1.5.x | :x: | Not supported, please upgrade to 2.0.x |
| 1.4.x | :x: | Not supported, please upgrade to 2.0.x |
| 1.3.x | :x: | Not supported, please upgrade to 2.0.x |
| 1.2.x | :x: | Not supported, please upgrade to 2.0.x |
| 1.1.x | :x: | Not supported, please upgrade to 2.0.x |
| 1.0.x | :x: | Not supported, please upgrade to 2.0.x |

## Reporting a Vulnerability

We appreciate the effort of security researchers and the general public in helping us maintain the security of our software. Here’s how you can report a vulnerability:
We appreciate the effort of security researchers and the general public in helping us maintain the security of our
software. Here’s how you can report a vulnerability:

1. **Creating an Issue**: Visit our GitHub repository and [create an issue](https://github.com/bumble-tech/bumble-doc-gen/issues) detailing the vulnerability. Please label the issue as "security" for quicker identification.
2. **Details Matter**: When reporting, please provide as much detail as possible. This includes steps to reproduce, potential impact, and any other information that might help us understand the severity and nature of the vulnerability.
3. **Stay Responsible**: Avoid disclosing public details about the vulnerability until we've had a chance to address it. This ensures that our users remain protected.
1. **Creating an Issue**: Visit our GitHub repository
and [create an issue](https://github.com/bumble-tech/bumble-doc-gen/issues) detailing the vulnerability. Please label
the issue as "security" for quicker identification.
2. **Details Matter**: When reporting, please provide as much detail as possible. This includes steps to reproduce,
potential impact, and any other information that might help us understand the severity and nature of the
vulnerability.
3. **Stay Responsible**: Avoid disclosing public details about the vulnerability until we've had a chance to address it.
This ensures that our users remain protected.

## Our Commitment

Expand All @@ -31,7 +40,8 @@ Upon receiving a security vulnerability report:
1. We will confirm the receipt of the report and begin an initial assessment.
2. We will work to verify the vulnerability and ascertain its potential impact.
3. If required, we will release patches for the affected versions.
4. We will recognize your efforts in our changelog and other public communications, unless you prefer to remain anonymous.
4. We will recognize your efforts in our changelog and other public communications, unless you prefer to remain
anonymous.

## Further Recommendations

Expand All @@ -43,4 +53,5 @@ We recommend all users to:

---

Your security is a collaborative effort, and we are grateful for your trust and participation in keeping our library safe and reliable.
Your security is a collaborative effort, and we are grateful for your trust and participation in keeping our library
safe and reliable.
35 changes: 35 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Upgrade Documentation

This document serves as a reference for updating your current version of the BumbleDocGen library regarding deprecation or backward compatibility issues.

## Upgrading from BumbleDocGen 1.6.0 to 2.0.0

* Updating the minimum PHP version to 8.1
* Changes when working with templates: variable `phpClassEntityCollection` renamed to `phpEntities`
* Now, instead of variables in the template with title and previous page, the Front Matter block is used
* The BetterReflection library and classes that depend on it in the code have been removed:
* `\BumbleDocGen\Core\Cache\SourceLocatorCacheItemPool`
* `\BumbleDocGen\Core\Plugin\Event\Parser\OnLoadSourceLocatorsCollection`
* `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\Exception\ReflectionException`
* `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\Reflection\ReflectorWrapper`
* `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\AsyncSourceLocator`
* `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\CustomSourceLocatorInterface`
* `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\Internal\CachedSourceLocator`
* `\BumbleDocGen\LanguageHandler\Php\Parser\SourceLocator\Internal\SystemAsyncSourceLocator`
* Class `\BumbleDocGen\LanguageHandler\Php\Parser\ComposerParser` renamed to `\BumbleDocGen\LanguageHandler\Php\Parser\ComposerHelper`
* Doc block parsing has been removed:
* `\Roave\BetterReflection\Reflection\ReflectionMethod::getDocBlockReturnTypes()`
* `\Roave\BetterReflection\Reflection\ReflectionFunction::getDocBlockReturnTypes()`
* `\Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypes()`
* `\Roave\BetterReflection\Reflection\ReflectionParameter::getDocBlockTypeStrings()`
* `\Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypes()`
* `\Roave\BetterReflection\Reflection\ReflectionProperty::getDocBlockTypeStrings()`
* Method `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity::hasAnnotationKey()` has been removed.
* Method `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity::getExtends()` has been removed.
* Method `\BumbleDocGen\LanguageHandler\Php\Parser\Entity\ClassEntity::getInterfacesString()` has been removed.
* Now documentation for built classes does not load automatically
* Removed the `async_source_loading_enabled` configuration option (Method `\BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings::asyncSourceLoadingEnabled()`)
* Class `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\AfterLoadingClassEntityCollection` has been removed. Use `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\AfterLoadingPhpEntitiesCollection`
* Class `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\OnCheckIsClassEntityCanBeLoad` has been removed. Use `\BumbleDocGen\LanguageHandler\Php\Plugin\Event\Entity\OnCheckIsEntityCanBeLoaded`
* ⚠️**PHP ReflectionAPI has been completely changed. See information about the current version here:** [ReflectionAPI](https://github.com/bumble-tech/bumble-doc-gen/tree/master/docs/tech/2.parser/reflectionApi)
* Method `\BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings::getComposerInstalledFile()` renamed to `\BumbleDocGen\LanguageHandler\Php\PhpHandlerSettings::getComposerVendorDir()`
2 changes: 1 addition & 1 deletion bumble_doc_gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ language_handlers:
class: \BumbleDocGen\LanguageHandler\Php\PhpHandler
settings:
file_source_base_url: 'https://github.com/bumble-tech/bumble-doc-gen/blob/master'
async_source_loading_enabled: true
source_locators:
- class: \BumbleDocGen\Core\Parser\SourceLocator\RecursiveDirectoriesSourceLocator
arguments:
Expand All @@ -21,6 +20,7 @@ twig_functions:
- class: \SelfDocConfig\Twig\CustomFunction\FindEntitiesClassesByCollectionClassName
- class: \SelfDocConfig\Twig\CustomFunction\PrintClassCollectionAsGroupedTable
- class: \SelfDocConfig\Twig\CustomFunction\GetConfigParametersDescription
- class: \SelfDocConfig\Twig\CustomFunction\GetConsoleCommands
plugins:
- class: \SelfDocConfig\Plugin\TwigFilterClassParser\TwigFilterClassParserPlugin
- class: \SelfDocConfig\Plugin\TwigFunctionClassParser\TwigFunctionClassParserPlugin
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@
"issues": "https://github.com/bumble-tech/bumble-doc-gen/issues"
},
"require": {
"php": "^8.0.0",
"php": "^8.1.0",
"ext-zlib": "*",
"ext-mbstring": "*",
"symfony/console": "^6.0",
"symfony/finder": "^6.0",
"twig/twig": "^3.3",
"roave/better-reflection": "^5.5",
"nikic/php-parser": "^4.13",
"phpdocumentor/reflection-docblock": "^5.3",
"doctrine/annotations": "^1.13",
"nette/php-generator": "^4.0",
"monolog/monolog": "^2.5",
"monolog/monolog": "^3.0",
"bramus/monolog-colored-line-formatter": "^3.0",
"symfony/cache": "^6.0",
"symfony/event-dispatcher": "^6.0",
"php-di/php-di": "^7.0",
"symfony/yaml": "^6.0",
"hassankhan/config": "^3.1",
"guzzlehttp/guzzle": "^7.8",
"symfony/filesystem": "^6.0"
"symfony/filesystem": "^6.0",
"daux/daux.io": "^0.22.1"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
Expand Down Expand Up @@ -68,7 +68,7 @@
],
"scripts": {
"test": "vendor/bin/phpunit",
"phpcs": "vendor/bin/phpcs --standard=psr12 src demo tests --warning-severity=0 --error-severity=1",
"phpcbf": "vendor/bin/phpcbf --standard=psr12 src demo tests"
"phpcs": "vendor/bin/phpcs --standard=psr12 src demo tests selfdoc --warning-severity=0 --error-severity=1",
"phpcbf": "vendor/bin/phpcbf --standard=psr12 src demo tests selfdoc"
}
}
Loading