Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
simple_sitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
simple_sitemap
Commits
74838bda
Commit
74838bda
authored
Sep 22, 2016
by
Pawel G
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add imports for type hinting
parent
795efcea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
src/Batch/BatchUrlGenerator.php
src/Batch/BatchUrlGenerator.php
+12
-6
src/Simplesitemap.php
src/Simplesitemap.php
+2
-1
src/SitemapGenerator.php
src/SitemapGenerator.php
+10
-1
No files found.
src/Batch/BatchUrlGenerator.php
View file @
74838bda
...
...
@@ -6,6 +6,12 @@ use Drupal\Core\Url;
use
Drupal\Component\Utility\Html
;
use
Drupal\Core\Cache\Cache
;
use
Drupal\Core\StringTranslation\StringTranslationTrait
;
use
Drupal\simple_sitemap
\
Logger
;
use
Drupal\simple_sitemap
\
SitemapGenerator
;
use
Drupal\Core\Language\LanguageManagerInterface
;
use
Drupal\Core\Entity\EntityTypeManagerInterface
;
use
Drupal\Core\Path\PathValidator
;
use
Drupal\Core\Entity\Query\QueryFactory
;
/**
* Class BatchUrlGenerator.
...
...
@@ -46,12 +52,12 @@ class BatchUrlGenerator {
* @param $logger
*/
public
function
__construct
(
$sitemap_generator
,
$language_manager
,
$entity_type_manager
,
$path_validator
,
$entity_query
,
$logger
SitemapGenerator
$sitemap_generator
,
LanguageManagerInterface
$language_manager
,
EntityTypeManagerInterface
$entity_type_manager
,
PathValidator
$path_validator
,
QueryFactory
$entity_query
,
Logger
$logger
)
{
// Todo using only one method, maybe make method static instead?
$this
->
sitemapGenerator
=
$sitemap_generator
;
...
...
src/Simplesitemap.php
View file @
74838bda
...
...
@@ -4,6 +4,7 @@ namespace Drupal\simple_sitemap;
use
Drupal\Core\Entity\ContentEntityTypeInterface
;
use
Drupal\simple_sitemap
\
Form\FormHelper
;
use
Drupal\simple_sitemap
\
SitemapGenerator
;
/**
* Class Simplesitemap.
...
...
@@ -33,7 +34,7 @@ class Simplesitemap {
* @param $dateFormatter
*/
public
function
__construct
(
$sitemapGenerator
,
SitemapGenerator
$sitemapGenerator
,
$configFactoryInterface
,
$database
,
$entityTypeManager
,
...
...
src/SitemapGenerator.php
View file @
74838bda
...
...
@@ -3,6 +3,10 @@
namespace
Drupal\simple_sitemap
;
use
\
XMLWriter
;
use
Drupal\simple_sitemap
\
Batch\Batch
;
use
Drupal\Core\Database\Connection
;
use
Drupal\Core\Extension\ModuleHandler
;
use
Drupal\Core\Language\LanguageManagerInterface
;
/**
* Class SitemapGenerator.
...
...
@@ -33,7 +37,12 @@ class SitemapGenerator {
* @param $module_handler
* @param $language_manager
*/
public
function
__construct
(
$batch
,
$database
,
$module_handler
,
$language_manager
)
{
public
function
__construct
(
Batch
$batch
,
Connection
$database
,
ModuleHandler
$module_handler
,
LanguageManagerInterface
$language_manager
)
{
$this
->
batch
=
$batch
;
$this
->
db
=
$database
;
$this
->
moduleHandler
=
$module_handler
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment