forked from symfony/symfony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialize StaticSiteGeneration (SSG) feature
- Loading branch information
Showing
7 changed files
with
167 additions
and
16 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
src/Symfony/Bundle/FrameworkBundle/Command/StaticSiteGenerationGenerateCommand.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Bundle\FrameworkBundle\Command; | ||
|
||
use Symfony\Component\Console\Attribute\AsCommand; | ||
use Symfony\Component\Console\Command\Command; | ||
|
||
/** | ||
* @author Thomas Bibaut | ||
* @author Mathias Arlaud <[email protected]> | ||
* @author Hugo Alliaume <[email protected]> | ||
*/ | ||
#[AsCommand(name: 'static-site-generation:generate', description: 'Set a secret in the vault')] | ||
final class StaticSiteGenerationGenerateCommand extends Command | ||
{ | ||
// TODO | ||
} |
28 changes: 28 additions & 0 deletions
28
src/Symfony/Component/HttpKernel/DependencyInjection/StaticSiteGenerationPass.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpKernel\DependencyInjection; | ||
|
||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | ||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
|
||
/** | ||
* @author Thomas Bibaut | ||
* @author Mathias Arlaud <[email protected]> | ||
* @author Hugo Alliaume <[email protected]> | ||
*/ | ||
readonly class StaticSiteGenerationPass implements CompilerPassInterface | ||
{ | ||
public function process(ContainerBuilder $container) | ||
{ | ||
// TODO: ... | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/Symfony/Component/HttpKernel/StaticSiteGeneration/ParamsProviderInterface.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpKernel\StaticSiteGeneration; | ||
|
||
/** | ||
* Classes implementing this interface are able to provide parameters for the static site generation. | ||
* | ||
* @author Thomas Bibaut | ||
* @author Mathias Arlaud <[email protected]> | ||
* @author Hugo Alliaume <[email protected]> | ||
*/ | ||
interface ParamsProviderInterface | ||
{ | ||
/** | ||
* @return iterable<array<string, mixed>> | ||
*/ | ||
public function provideParams(): iterable; | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Symfony/Component/HttpKernel/StaticSiteGeneration/StaticPagesGenerator.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpKernel\StaticSiteGeneration; | ||
|
||
/** | ||
* @author Thomas Bibaut | ||
* @author Mathias Arlaud <[email protected]> | ||
* @author Hugo Alliaume <[email protected]> | ||
*/ | ||
final readonly class StaticPagesGenerator implements StaticPagesGeneratorInterface | ||
{ | ||
public function __construct( | ||
|
||
) { | ||
} | ||
|
||
public function generate(): void | ||
{ | ||
// TODO: ... | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/Symfony/Component/HttpKernel/StaticSiteGeneration/StaticPagesGeneratorInterface.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\HttpKernel\StaticSiteGeneration; | ||
|
||
/** | ||
* @author Thomas Bibaut | ||
* @author Mathias Arlaud <[email protected]> | ||
* @author Hugo Alliaume <[email protected]> | ||
*/ | ||
interface StaticPagesGeneratorInterface | ||
{ | ||
public function generate(): void; | ||
} |
This file contains 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
This file contains 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