-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/2.x' into merge-2.x
# Conflicts: # src/Block/Breadcrumb/BaseBreadcrumbMenuBlockService.php # src/Block/Breadcrumb/HomepageBreadcrumbBlockService.php # src/Block/Social/BaseFacebookSocialPluginsBlockService.php # src/Block/Social/BaseTwitterButtonBlockService.php # src/Block/Social/EmailShareButtonBlockService.php # src/Block/Social/FacebookLikeBoxBlockService.php # src/Block/Social/FacebookLikeButtonBlockService.php # src/Block/Social/FacebookSendButtonBlockService.php # src/Block/Social/FacebookShareButtonBlockService.php # src/Block/Social/PinterestPinButtonBlockService.php # src/Block/Social/TwitterEmbedTweetBlockService.php # src/Block/Social/TwitterFollowButtonBlockService.php # src/Block/Social/TwitterHashtagButtonBlockService.php # src/Block/Social/TwitterMentionButtonBlockService.php # src/Block/Social/TwitterShareButtonBlockService.php # src/Command/SitemapGeneratorCommand.php # src/DependencyInjection/Compiler/BreadcrumbBlockServicesCompilerPass.php # src/DependencyInjection/Configuration.php # src/DependencyInjection/SonataSeoExtension.php # src/Event/BreadcrumbListener.php # src/Resources/config/blocks.xml # src/Seo/SeoPage.php # src/Seo/SeoPageInterface.php # src/Sitemap/SourceManager.php # src/SonataSeoBundle.php # src/Twig/Extension/SeoExtension.php # tests/DependencyInjection/Compiler/BreadcrumbBlockServicesCompilerPassTest.php # tests/DependencyInjection/Compiler/ServiceCompilerPassTest.php # tests/DependencyInjection/ConfigurationTest.php # tests/Seo/SeoPageTest.php # tests/Twig/Extension/SeoExtensionTest.php
- Loading branch information
Showing
15 changed files
with
174 additions
and
87 deletions.
There are no files selected for viewing
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
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Sonata\SeoBundle\Block\Breadcrumb; | ||
|
||
use Sonata\SeoBundle\BreadcrumbInterface; | ||
|
||
interface BreadcrumbBlockService extends BreadcrumbInterface | ||
{ | ||
} |
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
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,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Sonata\SeoBundle\Block\Breadcrumb\HomepageBreadcrumbBlockService; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
// Use "service" function for creating references to services when dropping support for Symfony 4.4 | ||
// Use "param" function for creating references to parameters when dropping support for Symfony 5.1 | ||
$containerConfigurator->parameters() | ||
->set('sonata.seo.block.breadcrumb.homepage.class', HomepageBreadcrumbBlockService::class); | ||
|
||
$containerConfigurator->services() | ||
|
||
// Breadcrumb | ||
->set('sonata.seo.block.breadcrumb.homepage', '%sonata.seo.block.breadcrumb.homepage.class%') | ||
->public() | ||
->tag('sonata.block') | ||
->tag('sonata.breadcrumb') | ||
->args([ | ||
new ReferenceConfigurator('twig'), | ||
new ReferenceConfigurator('knp_menu.factory'), | ||
]); | ||
}; |
This file was deleted.
Oops, something went wrong.
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 | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Sonata\SeoBundle\Command\SitemapGeneratorCommand; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
// Use "service" function for creating references to services when dropping support for Symfony 4.4 | ||
// Use "param" function for creating references to parameters when dropping support for Symfony 5.1 | ||
$containerConfigurator->services() | ||
|
||
->set(SitemapGeneratorCommand::class) | ||
->tag('console.command') | ||
->args([ | ||
new ReferenceConfigurator('router'), | ||
new ReferenceConfigurator('sonata.seo.sitemap.manager'), | ||
new ReferenceConfigurator('filesystem'), | ||
]); | ||
}; |
This file was deleted.
Oops, something went wrong.
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 | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Sonata\SeoBundle\Event\BreadcrumbListener; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
// Use "service" function for creating references to services when dropping support for Symfony 4.4 | ||
// Use "param" function for creating references to parameters when dropping support for Symfony 5.1 | ||
$containerConfigurator->services() | ||
|
||
->set('sonata.seo.event.breadcrumb', BreadcrumbListener::class) | ||
->tag('kernel.event_listener', [ | ||
'event' => 'sonata.block.event.breadcrumb', | ||
'method' => 'onBlock', | ||
]); | ||
}; |
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* This file is part of the Sonata Project package. | ||
* | ||
* (c) Thomas Rabaix <thomas.rabaix@sonata-project.org> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
use Sonata\Exporter\Source\DoctrineDBALConnectionSourceIterator; | ||
use Sonata\Exporter\Source\SymfonySitemapSourceIterator; | ||
use Sonata\SeoBundle\Seo\SeoPage; | ||
use Sonata\SeoBundle\Sitemap\SourceManager; | ||
use Sonata\SeoBundle\Twig\Extension\SeoExtension; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator; | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
// Use "service" function for creating references to services when dropping support for Symfony 4.4 | ||
// Use "param" function for creating references to parameters when dropping support for Symfony 5.1 | ||
$containerConfigurator->parameters() | ||
|
||
->set('sonata.seo.exporter.database_source_iterator.class', DoctrineDBALConnectionSourceIterator::class) | ||
|
||
->set('sonata.seo.exporter.sitemap_source_iterator.class', SymfonySitemapSourceIterator::class) | ||
|
||
->set('sonata.seo.page.default.class', SeoPage::class) | ||
|
||
->set('sonata.seo.twig.extension.class', SeoExtension::class) | ||
|
||
->set('sonata.seo.sitemap.manager.class', SourceManager::class); | ||
|
||
$containerConfigurator->services() | ||
|
||
->set('sonata.seo.page.default', '%sonata.seo.page.default.class%') | ||
->public() | ||
|
||
->set('sonata.seo.twig.extension', '%sonata.seo.twig.extension.class%') | ||
->tag('twig.extension') | ||
->args([ | ||
new ReferenceConfigurator('sonata.seo.page'), | ||
'', | ||
]) | ||
|
||
->set('sonata.seo.sitemap.manager', '%sonata.seo.sitemap.manager.class%') | ||
->public(); | ||
}; |
This file was deleted.
Oops, something went wrong.
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