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

Improve code generation for factories & proxies #29

Merged
merged 7 commits into from
Apr 18, 2020

Commits on Apr 17, 2020

  1. Configuration menu
    Copy the full SHA
    c8faa1e View commit details
    Browse the repository at this point in the history
  2. Add simplified CacheStorage implementation

    To be able to use PHPStan's caching mechanism for generating
    factory & proxy classes, a simplified version of a file cache
    storage is added.
    shochdoerfer committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    5422c9b View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Configuration menu
    Copy the full SHA
    6e2f5c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ed5b58 View commit details
    Browse the repository at this point in the history
  3. Remove autoloader magic in registration.php

    Unfortunately made it impossible to overload the autoloader and
    magically set the custom autoloaders needed for the extension to
    run. Thus I removed the registration.php file handled the magic.
    
    This means regardless of using the .phar archive or phpstan-src
    dependency, you have to manually configure the autoload.php
    work-a-round in the project's phpstan configuration.
    shochdoerfer committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    1b0e233 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    55381e2 View commit details
    Browse the repository at this point in the history
  5. Locate & parse phpstan config to determine tmpDir

    To make sure that the cached files are generated in the
    same cache directory as the regular phpstan files, find
    the phpstan configuration and parse it via Nette\Neon
    parser. Downside: The configuration gets parsed twice but
    I did not notice any bigger speed difference.
    shochdoerfer committed Apr 18, 2020
    Configuration menu
    Copy the full SHA
    88e53f8 View commit details
    Browse the repository at this point in the history