Skip to content

Major refactor of compiler pass and configuration tree#32

Merged
gorkalaucirica merged 6 commits into
masterfrom
feature/configuration-refactorefactor
Sep 7, 2017
Merged

Major refactor of compiler pass and configuration tree#32
gorkalaucirica merged 6 commits into
masterfrom
feature/configuration-refactorefactor

Conversation

@gorkalaucirica
Copy link
Copy Markdown
Contributor

  • Created ThemeConfig to store theme related configuration
  • Pass stylesheets and javascripts in ThemeConfig to iframe in Twig Renderer
  • Simplified theme customization using CSS variables
  • Unified theme customization and related in LoadThemeConfigPass
  • Modified IndexController to pass to the view the values in ThemeConfig

- Created ThemeConfig to store theme related configuration
- Pass stylesheets and javascripts in ThemeConfig to iframe in Twig Renderer
- Simplified theme customization using CSS variables
- Unified theme customization and related in LoadThemeConfigPass
- Modified IndexController to pass to the view the values in ThemeConfig
@benatespina benatespina changed the title Major refactor of compiler pass and configuration tree [WIP] Major refactor of compiler pass and configuration tree Sep 7, 2017
@benatespina benatespina changed the title [WIP] Major refactor of compiler pass and configuration tree Major refactor of compiler pass and configuration tree Sep 7, 2017
Comment thread tests/Application/app/AppKernel.php Outdated
'theme' => [
'title' => 'LIN3S',
'description' => 'Pattern Library Builder',
'stylesheets' => ['https://www.euskaltel.com/assets/euskaltel.21f40baa7611ea899495aba95bc09f67.css'],
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line

// @author Gorka Laucirica <gorka.lauzirika@gmail.com>
// @author Mikel Tuesta <mikeltuesta@gmail.com>

//Default CSS Vars, can be override using configuration
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this comment above :root

* Removed stylesheet parameter in loadFromExtension
private $templateConfig;

public function __construct(\Twig_Environment $twig, RequestStack $requestStack)
public function __construct(\Twig_Environment $twig, RequestStack $requestStack, ThemeConfig $templateConfig)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change $templateConfig to $themeConfig in the whole class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant