🧙♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Add this route to your Flextype Website to generate static website. | |
| flextype()->get('/generate-static-site', function () { | |
| // Set static site directory path | |
| $staticSitePath = '../awilum.github.io/'; | |
| // Set static site base url | |
| //flextype('registry')->set('flextype.settings.url', 'CUSTOM_BASE_URL'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Run phpstan | |
| php -d memory_limit=1G ./vendor/bin/phpstan | |
| # Run pest | |
| php -d memory_limit=1G ./vendor/bin/pest | |
| # Run phpcbf | |
| ./vendor/bin/phpcbf --standard=Doctrine ./src/flextype/core/Actions.php | |
| # Start Symfony Local Server |
OlderNewer