throw new RuntimeException('Unable to locate an object compatible with paginate.'); |
|
} |
|
$settings += $this->paginate; |
|
|
|
return $this->Paginator->paginate($table, $settings); |
|
} |
|
|
|
/** |
|
* Method to check that an action is accessible from a URL. |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT References2.id AS `References2__id`, References2.titre AS `References2__titre`, References2.photo AS `References2__photo`, References2.client_cp AS `References2__client_cp`, References2.client_ville AS `References2__client_ville`, Liste.id AS `Liste__id`, Liste.ets AS `Liste__ets`, Dirigeant.id AS `Dirigeant__id`, Dirigeant.nom AS `Dirigeant__nom`, Dirigeant.prenom AS `Dirigeant__prenom`, Dirigeant.photo AS `Dirigeant__photo` FROM references2 References2 LEFT JOIN liste Liste ON Liste.id = (References2.id_installateur) LEFT JOIN users Dirigeant ON (Dirigeant.type = :c0 AND Liste.id = (Dirigeant.liste_id)) WHERE ((References2.sous_categories like :c1 OR References2.sous_categories like :c2 OR References2.sous_categories like :c3 OR References2.sous_categories like :c4 OR References2.sous_categories like :c5 OR References2.sous_categories like :c6 OR References2.sous_categories like :c7 OR References2.sous_categories like :c8) AND statut = :c9 AND valid = :c10) ORDER BY References2.id DESC LIMIT 15 OFFSET 105', 'params' => [ ':c0' => [ 'value' => 'dirigeant', 'type' => 'string', 'placeholder' => 'c0' ], ':c1' => [ 'value' => '%,18,%', 'type' => 'string', 'placeholder' => 'c1' ], ':c2' => [ 'value' => '%,131,%', 'type' => 'string', 'placeholder' => 'c2' ], ':c3' => [ 'value' => '%,928,%', 'type' => 'string', 'placeholder' => 'c3' ], ':c4' => [ 'value' => '%,925,%', 'type' => 'string', 'placeholder' => 'c4' ], ':c5' => [ 'value' => '%,229,%', 'type' => 'string', 'placeholder' => 'c5' ], ':c6' => [ 'value' => '%,231,%', 'type' => 'string', 'placeholder' => 'c6' ], ':c7' => [ 'value' => '%,185,%', 'type' => 'string', 'placeholder' => 'c7' ], ':c8' => [ 'value' => '%,217,%', 'type' => 'string', 'placeholder' => 'c8' ], ':c9' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c9' ], ':c10' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c10' ] ], 'defaultTypes' => [ 'References2__id' => 'integer', 'References2.id' => 'integer', 'id' => 'integer', 'References2__id_installateur' => 'integer', 'References2.id_installateur' => 'integer', 'id_installateur' => 'integer', 'References2__id_client' => 'integer', 'References2.id_client' => 'integer', 'id_client' => 'integer', 'References2__client_mail_send' => 'tinyinteger', 'References2.client_mail_send' => 'tinyinteger', 'client_mail_send' => 'tinyinteger', 'References2__categorie' => 'integer', 'References2.categorie' => 'integer', 'categorie' => 'integer', 'References2__sous_categories' => 'string', 'References2.sous_categories' => 'string', 'sous_categories' => 'string', 'References2__Lat' => 'decimal', 'References2.Lat' => 'decimal', 'Lat' => 'decimal', 'References2__Lng' => 'decimal', 'References2.Lng' => 'decimal', 'Lng' => 'decimal', 'References2__titre' => 'string', 'References2.titre' => 'string', 'titre' => 'string', 'References2__annee' => 'string', 'References2.annee' => 'string', 'annee' => 'string', 'References2__caracteristiques' => 'text', 'References2.caracteristiques' => 'text', 'caracteristiques' => 'text', 'References2__client_nom' => 'string', 'References2.client_nom' => 'string', 'client_nom' => 'string', 'References2__client_adresse' => 'text', 'References2.client_adresse' => 'text', 'client_adresse' => 'text', 'References2__client_cp' => 'string', 'References2.client_cp' => 'string', 'client_cp' => 'string', 'References2__client_ville' => 'string', 'References2.client_ville' => 'string', 'client_ville' => 'string', 'References2__client_mail' => 'string', 'References2.client_mail' => 'string', 'client_mail' => 'string', 'References2__client_tel' => 'string', 'References2.client_tel' => 'string', 'client_tel' => 'string', 'References2__client_autorisation' => 'boolean', 'References2.client_autorisation' => 'boolean', 'client_autorisation' => 'boolean', 'References2__fabricant' => 'string', 'References2.fabricant' => 'string', 'fabricant' => 'string', 'References2__photo' => 'string', 'References2.photo' => 'string', 'photo' => 'string', 'References2__photo_01' => 'string', 'References2.photo_01' => 'string', 'photo_01' => 'string', 'References2__photo_02' => 'string', 'References2.photo_02' => 'string', 'photo_02' => 'string', 'References2__photo_03' => 'string', 'References2.photo_03' => 'string', 'photo_03' => 'string', 'References2__photo_04' => 'string', 'References2.photo_04' => 'string', 'photo_04' => 'string', 'References2__photo_05' => 'string', 'References2.photo_05' => 'string', 'photo_05' => 'string', 'References2__dossier_technique' => 'string', 'References2.dossier_technique' => 'string', 'dossier_technique' => 'string', 'References2__video' => 'string', 'References2.video' => 'string', 'video' => 'string', 'References2__departements' => 'string', 'References2.departements' => 'string', 'departements' => 'string', 'References2__statut' => 'boolean', 'References2.statut' => 'boolean', 'statut' => 'boolean', 'References2__valid' => 'boolean', 'References2.valid' => 'boolean', 'valid' => 'boolean', 'References2__affichage_carte' => 'boolean', 'References2.affichage_carte' => 'boolean', 'affichage_carte' => 'boolean', 'References2__created' => 'datetime', 'References2.created' => 'datetime', 'created' => 'datetime', 'References2__brouillon' => 'tinyinteger', 'References2.brouillon' => 'tinyinteger', 'brouillon' => 'tinyinteger', 'References2__admin_commentaire' => 'text', 'References2.admin_commentaire' => 'text', 'admin_commentaire' => 'text', 'Liste__id' => 'smallinteger', 'Liste.id' => 'smallinteger', 'Liste__region_id' => 'integer', 'Liste.region_id' => 'integer', 'region_id' => 'integer', 'Liste__commission_id' => 'integer', 'Liste.commission_id' => 'integer', 'commission_id' => 'integer', 'Liste__association' => 'string', 'Liste.association' => 'string', 'association' => 'string', 'Liste__domaine' => 'string', 'Liste.domaine' => 'string', 'domaine' => 'string', 'Liste__dept' => 'string', 'Liste.dept' => 'string', 'dept' => 'string', 'Liste__metiers_id' => 'string', 'Liste.metiers_id' => 'string', 'metiers_id' => 'string', 'Liste__certifications_id' => 'string', 'Liste.certifications_id' => 'string', 'certifications_id' => 'string', 'Liste__x' => 'smallinteger', 'Liste.x' => 'smallinteger', 'x' => 'smallinteger', 'Liste__x2' => 'smallinteger', 'Liste.x2' => 'smallinteger', 'x2' => 'smallinteger', 'Liste__y' => 'smallinteger', 'Liste.y' => 'smallinteger', 'y' => 'smallinteger', 'Liste__y2' => 'string', 'Liste.y2' => 'string', 'y2' => 'string', 'Liste__Lat' => 'decimal', 'Liste.Lat' => 'decimal', 'Liste__Lat2' => 'string', 'Liste.Lat2' => 'string', 'Lat2' => 'string', 'Liste__Lng' => 'decimal', 'Liste.Lng' => 'decimal', 'Liste__Lng2' => 'string', 'Liste.Lng2' => 'string', 'Lng2' => 'string', 'Liste__ets' => 'string', 'Liste.ets' => 'string', 'ets' => 'string', 'Liste__tva' => 'string', 'Liste.tva' => 'string', 'tva' => 'string', 'Liste__capital_social' => 'string', 'Liste.capital_social' => 'string', 'capital_social' => 'string', 'Liste__tarifs' => 'string', 'Liste.tarifs' => 'string', 'tarifs' => 'string', 'Liste__cgv' => 'string', 'Liste.cgv' => 'string', 'cgv' => 'string', 'Liste__formulaire_retractation' => 'string', 'Liste.formulaire_retractation' => 'string', 'formulaire_retractation' => 'string', 'Liste__mediateur_nom' => 'string', 'Liste.mediateur_nom' => 'string', 'mediateur_nom' => 'string', 'Liste__mediateur_url' => 'string', 'Liste.mediateur_url' => 'string', 'mediateur_url' => 'string', 'Liste__mediateur_adresse' => 'string', 'Liste.mediateur_adresse' => 'string', 'mediateur_adresse' => 'string', 'Liste__mediateur_mail' => 'string', 'Liste.mediateur_mail' => 'string', 'mediateur_mail' => 'string', 'Liste__siret' => 'string', 'Liste.siret' => 'string', 'siret' => 'string', 'Liste__bureau_etudes' => 'tinyinteger', 'Liste.bureau_etudes' => 'tinyinteger', 'bureau_etudes' => 'tinyinteger', 'Liste__situation' => 'string', 'Liste.situation' => 'string', 'situation' => 'string', 'Liste__nom' => 'string', 'Liste.nom' => 'string', 'nom' => 'string', 'Liste__prenom' => 'string', 'Liste.prenom' => 'string', 'prenom' => 'string', 'Liste__adresse' => 'string', 'Liste.adresse' => 'string', 'adresse' => 'string', 'Liste__adresse2' => 'string', 'Liste.adresse2' => 'string', 'adresse2' => 'string', 'Liste__cp' => 'integer', 'Liste.cp' => 'integer', 'cp' => 'integer', 'Liste__cp2' => 'integer', 'Liste.cp2' => 'integer', 'cp2' => 'integer', 'Liste__ville' => 'string', 'Liste.ville' => 'string', 'ville' => 'string', 'Liste__ville2' => 'string', 'Liste.ville2' => 'string', 'ville2' => 'string', 'Liste__tel' => 'string', 'Liste.tel' => 'string', 'tel' => 'string', 'Liste__tel2' => 'string', 'Liste.tel2' => 'string', 'tel2' => 'string', 'Liste__mobile' => 'string', 'Liste.mobile' => 'string', 'mobile' => 'string', 'Liste__fax' => 'string', 'Liste.fax' => 'string', 'fax' => 'string', 'Liste__texte' => 'text', 'Liste.texte' => 'text', 'texte' => 'text', 'Liste__site' => 'string', 'Liste.site' => 'string', 'site' => 'string', 'Liste__mail' => 'string', 'Liste.mail' => 'string', 'mail' => 'string', 'Liste__redirection_mail' => 'string', 'Liste.redirection_mail' => 'string', 'redirection_mail' => 'string', 'Liste__logo' => 'string', 'Liste.logo' => 'string', 'logo' => 'string', 'Liste__photo0' => 'string', 'Liste.photo0' => 'string', 'photo0' => 'string', 'Liste__photo1' => 'string', 'Liste.photo1' => 'string', 'photo1' => 'string', 'Liste__photo2' => 'string', 'Liste.photo2' => 'string', 'photo2' => 'string', 'Liste__photo3' => 'string', 'Liste.photo3' => 'string', 'photo3' => 'string', 'Liste__slider0' => 'string', 'Liste.slider0' => 'string', 'slider0' => 'string', 'Liste__slider1' => 'string', 'Liste.slider1' => 'string', 'slider1' => 'string', 'Liste__slider2' => 'string', 'Liste.slider2' => 'string', 'slider2' => 'string', 'Liste__presentation' => 'text', 'Liste.presentation' => 'text', 'presentation' => 'text', 'Liste__reso_social_type' => 'string', 'Liste.reso_social_type' => 'string', 'reso_social_type' => 'string', 'Liste__facebook' => 'string', 'Liste.facebook' => 'string', 'facebook' => 'string', 'Liste__twitter' => 'string', 'Liste.twitter' => 'string', 'twitter' => 'string', 'Liste__youtube' => 'string', 'Liste.youtube' => 'string', 'youtube' => 'string', 'Liste__instagram' => 'string', 'Liste.instagram' => 'string', 'instagram' => 'string', 'Liste__linkedin' => 'string', 'Liste.linkedin' => 'string', 'linkedin' => 'string', 'Liste__login' => 'string', 'Liste.login' => 'string', 'login' => 'string', 'Liste__mdp' => 'string', 'Liste.mdp' => 'string', 'mdp' => 'string', 'Liste__cotisation' => 'date', 'Liste.cotisation' => 'date', 'cotisation' => 'date', 'Liste__cotisation_website' => 'date', 'Liste.cotisation_website' => 'date', 'cotisation_website' => 'date', 'Liste__gabarit_selection' => 'date', 'Liste.gabarit_selection' => 'date', 'gabarit_selection' => 'date', 'Liste__service_web_key' => 'integer', 'Liste.service_web_key' => 'integer', 'service_web_key' => 'integer', 'Liste__cotisation_service_web' => 'date', 'Liste.cotisation_service_web' => 'date', 'cotisation_service_web' => 'date', 'Liste__website' => 'boolean', 'Liste.website' => 'boolean', 'website' => 'boolean', 'Liste__membre_partenaire' => 'boolean', 'Liste.membre_partenaire' => 'boolean', 'membre_partenaire' => 'boolean', 'Liste__parrain_id' => 'integer', 'Liste.parrain_id' => 'integer', 'parrain_id' => 'integer', 'Liste__website_online' => 'boolean', 'Liste.website_online' => 'boolean', 'website_online' => 'boolean', 'Liste__rib' => 'string', 'Liste.rib' => 'string', 'rib' => 'string', 'Liste__autorisation' => 'boolean', 'Liste.autorisation' => 'boolean', 'autorisation' => 'boolean', 'Liste__created' => 'date', 'Liste.created' => 'date', 'Liste__actif' => 'tinyinteger', 'Liste.actif' => 'tinyinteger', 'actif' => 'tinyinteger', 'Liste__viessmann_client_id' => 'string', 'Liste.viessmann_client_id' => 'string', 'viessmann_client_id' => 'string', 'Liste__derniere_co' => 'datetime', 'Liste.derniere_co' => 'datetime', 'derniere_co' => 'datetime', 'Dirigeant__id' => 'integer', 'Dirigeant.id' => 'integer', 'Dirigeant__type' => 'string', 'Dirigeant.type' => 'string', 'type' => 'string', 'Dirigeant__fonction' => 'string', 'Dirigeant.fonction' => 'string', 'fonction' => 'string', 'Dirigeant__nom' => 'string', 'Dirigeant.nom' => 'string', 'Dirigeant__prenom' => 'string', 'Dirigeant.prenom' => 'string', 'Dirigeant__login' => 'string', 'Dirigeant.login' => 'string', 'Dirigeant__password' => 'string', 'Dirigeant.password' => 'string', 'password' => 'string', 'Dirigeant__mail' => 'string', 'Dirigeant.mail' => 'string', 'Dirigeant__tel' => 'string', 'Dirigeant.tel' => 'string', 'Dirigeant__photo' => 'string', 'Dirigeant.photo' => 'string', 'Dirigeant__liste_id' => 'integer', 'Dirigeant.liste_id' => 'integer', 'liste_id' => 'integer', 'Dirigeant__fabricant_id' => 'integer', 'Dirigeant.fabricant_id' => 'integer', 'fabricant_id' => 'integer', 'Dirigeant__droit' => 'string', 'Dirigeant.droit' => 'string', 'droit' => 'string', 'Dirigeant__all_mails' => 'boolean', 'Dirigeant.all_mails' => 'boolean', 'all_mails' => 'boolean', 'Dirigeant__actif' => 'tinyinteger', 'Dirigeant.actif' => 'tinyinteger', 'Adresses__id' => 'integer', 'Adresses.id' => 'integer', 'Adresses__adresse' => 'string', 'Adresses.adresse' => 'string', 'Adresses__cp' => 'string', 'Adresses.cp' => 'string', 'Adresses__ville' => 'string', 'Adresses.ville' => 'string', 'Adresses__x' => 'smallinteger', 'Adresses.x' => 'smallinteger', 'Adresses__y' => 'smallinteger', 'Adresses.y' => 'smallinteger', 'Adresses__lat' => 'decimal', 'Adresses.lat' => 'decimal', 'lat' => 'decimal', 'Adresses__lng' => 'decimal', 'Adresses.lng' => 'decimal', 'lng' => 'decimal', 'Adresses__tel' => 'string', 'Adresses.tel' => 'string', 'Adresses__mobile' => 'string', 'Adresses.mobile' => 'string', 'AvisRealisations__id' => 'integer', 'AvisRealisations.id' => 'integer', 'AvisRealisations__client_id' => 'integer', 'AvisRealisations.client_id' => 'integer', 'client_id' => 'integer', 'AvisRealisations__artisan_id' => 'integer', 'AvisRealisations.artisan_id' => 'integer', 'artisan_id' => 'integer', 'AvisRealisations__realisation_id' => 'integer', 'AvisRealisations.realisation_id' => 'integer', 'realisation_id' => 'integer', 'AvisRealisations__date' => 'date', 'AvisRealisations.date' => 'date', 'date' => 'date', 'AvisRealisations__type' => 'string', 'AvisRealisations.type' => 'string', 'AvisRealisations__contenu' => 'text', 'AvisRealisations.contenu' => 'text', 'contenu' => 'text', 'AvisRealisations__note' => 'tinyinteger', 'AvisRealisations.note' => 'tinyinteger', 'note' => 'tinyinteger', 'AvisRealisations__diffusion' => 'boolean', 'AvisRealisations.diffusion' => 'boolean', 'diffusion' => 'boolean', 'AvisRealisations__client_autorisation' => 'boolean', 'AvisRealisations.client_autorisation' => 'boolean', 'AvisRealisations__mail_send' => 'boolean', 'AvisRealisations.mail_send' => 'boolean', 'mail_send' => 'boolean' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'Liste' => [ 'Dirigeant' => [[maximum depth reached]], 'Adresses' => [[maximum depth reached]] ], 'AvisRealisations' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [ 'scope' => null, 'sort' => null, 'whitelist' => [ (int) 0 => 'limit', (int) 1 => 'sort', (int) 2 => 'page', (int) 3 => 'direction' ] ], 'repository' => object(App\Model\Table\References2Table) { 'registryAlias' => 'References2', 'table' => 'references2', 'alias' => 'References2', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } } [ 'limit' => (int) 15, 'page' => (int) 8 ]
$this->paginate = [ |
|
'limit' => 15 |
|
]; |
|
$this->paginate['page'] = (isset($this->request->params['page'])) ? $this->request->params['page'] * 1 : 1; |
|
$realisations = $this->paginate($query); |
|
//debug($realisations);exit; |
|
//récupération note moyenne du métier |
|
$avisTable = TableRegistry::get('AvisRealisations'); |
|
$noteMoyenne = $avisTable->getMoyenneAvis(null, $typeTravaux); |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT References2.id AS `References2__id`, References2.titre AS `References2__titre`, References2.photo AS `References2__photo`, References2.client_cp AS `References2__client_cp`, References2.client_ville AS `References2__client_ville`, Liste.id AS `Liste__id`, Liste.ets AS `Liste__ets`, Dirigeant.id AS `Dirigeant__id`, Dirigeant.nom AS `Dirigeant__nom`, Dirigeant.prenom AS `Dirigeant__prenom`, Dirigeant.photo AS `Dirigeant__photo` FROM references2 References2 LEFT JOIN liste Liste ON Liste.id = (References2.id_installateur) LEFT JOIN users Dirigeant ON (Dirigeant.type = :c0 AND Liste.id = (Dirigeant.liste_id)) WHERE ((References2.sous_categories like :c1 OR References2.sous_categories like :c2 OR References2.sous_categories like :c3 OR References2.sous_categories like :c4 OR References2.sous_categories like :c5 OR References2.sous_categories like :c6 OR References2.sous_categories like :c7 OR References2.sous_categories like :c8) AND statut = :c9 AND valid = :c10) ORDER BY References2.id DESC LIMIT 15 OFFSET 105', 'params' => [ ':c0' => [ 'value' => 'dirigeant', 'type' => 'string', 'placeholder' => 'c0' ], ':c1' => [ 'value' => '%,18,%', 'type' => 'string', 'placeholder' => 'c1' ], ':c2' => [ 'value' => '%,131,%', 'type' => 'string', 'placeholder' => 'c2' ], ':c3' => [ 'value' => '%,928,%', 'type' => 'string', 'placeholder' => 'c3' ], ':c4' => [ 'value' => '%,925,%', 'type' => 'string', 'placeholder' => 'c4' ], ':c5' => [ 'value' => '%,229,%', 'type' => 'string', 'placeholder' => 'c5' ], ':c6' => [ 'value' => '%,231,%', 'type' => 'string', 'placeholder' => 'c6' ], ':c7' => [ 'value' => '%,185,%', 'type' => 'string', 'placeholder' => 'c7' ], ':c8' => [ 'value' => '%,217,%', 'type' => 'string', 'placeholder' => 'c8' ], ':c9' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c9' ], ':c10' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c10' ] ], 'defaultTypes' => [ 'References2__id' => 'integer', 'References2.id' => 'integer', 'id' => 'integer', 'References2__id_installateur' => 'integer', 'References2.id_installateur' => 'integer', 'id_installateur' => 'integer', 'References2__id_client' => 'integer', 'References2.id_client' => 'integer', 'id_client' => 'integer', 'References2__client_mail_send' => 'tinyinteger', 'References2.client_mail_send' => 'tinyinteger', 'client_mail_send' => 'tinyinteger', 'References2__categorie' => 'integer', 'References2.categorie' => 'integer', 'categorie' => 'integer', 'References2__sous_categories' => 'string', 'References2.sous_categories' => 'string', 'sous_categories' => 'string', 'References2__Lat' => 'decimal', 'References2.Lat' => 'decimal', 'Lat' => 'decimal', 'References2__Lng' => 'decimal', 'References2.Lng' => 'decimal', 'Lng' => 'decimal', 'References2__titre' => 'string', 'References2.titre' => 'string', 'titre' => 'string', 'References2__annee' => 'string', 'References2.annee' => 'string', 'annee' => 'string', 'References2__caracteristiques' => 'text', 'References2.caracteristiques' => 'text', 'caracteristiques' => 'text', 'References2__client_nom' => 'string', 'References2.client_nom' => 'string', 'client_nom' => 'string', 'References2__client_adresse' => 'text', 'References2.client_adresse' => 'text', 'client_adresse' => 'text', 'References2__client_cp' => 'string', 'References2.client_cp' => 'string', 'client_cp' => 'string', 'References2__client_ville' => 'string', 'References2.client_ville' => 'string', 'client_ville' => 'string', 'References2__client_mail' => 'string', 'References2.client_mail' => 'string', 'client_mail' => 'string', 'References2__client_tel' => 'string', 'References2.client_tel' => 'string', 'client_tel' => 'string', 'References2__client_autorisation' => 'boolean', 'References2.client_autorisation' => 'boolean', 'client_autorisation' => 'boolean', 'References2__fabricant' => 'string', 'References2.fabricant' => 'string', 'fabricant' => 'string', 'References2__photo' => 'string', 'References2.photo' => 'string', 'photo' => 'string', 'References2__photo_01' => 'string', 'References2.photo_01' => 'string', 'photo_01' => 'string', 'References2__photo_02' => 'string', 'References2.photo_02' => 'string', 'photo_02' => 'string', 'References2__photo_03' => 'string', 'References2.photo_03' => 'string', 'photo_03' => 'string', 'References2__photo_04' => 'string', 'References2.photo_04' => 'string', 'photo_04' => 'string', 'References2__photo_05' => 'string', 'References2.photo_05' => 'string', 'photo_05' => 'string', 'References2__dossier_technique' => 'string', 'References2.dossier_technique' => 'string', 'dossier_technique' => 'string', 'References2__video' => 'string', 'References2.video' => 'string', 'video' => 'string', 'References2__departements' => 'string', 'References2.departements' => 'string', 'departements' => 'string', 'References2__statut' => 'boolean', 'References2.statut' => 'boolean', 'statut' => 'boolean', 'References2__valid' => 'boolean', 'References2.valid' => 'boolean', 'valid' => 'boolean', 'References2__affichage_carte' => 'boolean', 'References2.affichage_carte' => 'boolean', 'affichage_carte' => 'boolean', 'References2__created' => 'datetime', 'References2.created' => 'datetime', 'created' => 'datetime', 'References2__brouillon' => 'tinyinteger', 'References2.brouillon' => 'tinyinteger', 'brouillon' => 'tinyinteger', 'References2__admin_commentaire' => 'text', 'References2.admin_commentaire' => 'text', 'admin_commentaire' => 'text', 'Liste__id' => 'smallinteger', 'Liste.id' => 'smallinteger', 'Liste__region_id' => 'integer', 'Liste.region_id' => 'integer', 'region_id' => 'integer', 'Liste__commission_id' => 'integer', 'Liste.commission_id' => 'integer', 'commission_id' => 'integer', 'Liste__association' => 'string', 'Liste.association' => 'string', 'association' => 'string', 'Liste__domaine' => 'string', 'Liste.domaine' => 'string', 'domaine' => 'string', 'Liste__dept' => 'string', 'Liste.dept' => 'string', 'dept' => 'string', 'Liste__metiers_id' => 'string', 'Liste.metiers_id' => 'string', 'metiers_id' => 'string', 'Liste__certifications_id' => 'string', 'Liste.certifications_id' => 'string', 'certifications_id' => 'string', 'Liste__x' => 'smallinteger', 'Liste.x' => 'smallinteger', 'x' => 'smallinteger', 'Liste__x2' => 'smallinteger', 'Liste.x2' => 'smallinteger', 'x2' => 'smallinteger', 'Liste__y' => 'smallinteger', 'Liste.y' => 'smallinteger', 'y' => 'smallinteger', 'Liste__y2' => 'string', 'Liste.y2' => 'string', 'y2' => 'string', 'Liste__Lat' => 'decimal', 'Liste.Lat' => 'decimal', 'Liste__Lat2' => 'string', 'Liste.Lat2' => 'string', 'Lat2' => 'string', 'Liste__Lng' => 'decimal', 'Liste.Lng' => 'decimal', 'Liste__Lng2' => 'string', 'Liste.Lng2' => 'string', 'Lng2' => 'string', 'Liste__ets' => 'string', 'Liste.ets' => 'string', 'ets' => 'string', 'Liste__tva' => 'string', 'Liste.tva' => 'string', 'tva' => 'string', 'Liste__capital_social' => 'string', 'Liste.capital_social' => 'string', 'capital_social' => 'string', 'Liste__tarifs' => 'string', 'Liste.tarifs' => 'string', 'tarifs' => 'string', 'Liste__cgv' => 'string', 'Liste.cgv' => 'string', 'cgv' => 'string', 'Liste__formulaire_retractation' => 'string', 'Liste.formulaire_retractation' => 'string', 'formulaire_retractation' => 'string', 'Liste__mediateur_nom' => 'string', 'Liste.mediateur_nom' => 'string', 'mediateur_nom' => 'string', 'Liste__mediateur_url' => 'string', 'Liste.mediateur_url' => 'string', 'mediateur_url' => 'string', 'Liste__mediateur_adresse' => 'string', 'Liste.mediateur_adresse' => 'string', 'mediateur_adresse' => 'string', 'Liste__mediateur_mail' => 'string', 'Liste.mediateur_mail' => 'string', 'mediateur_mail' => 'string', 'Liste__siret' => 'string', 'Liste.siret' => 'string', 'siret' => 'string', 'Liste__bureau_etudes' => 'tinyinteger', 'Liste.bureau_etudes' => 'tinyinteger', 'bureau_etudes' => 'tinyinteger', 'Liste__situation' => 'string', 'Liste.situation' => 'string', 'situation' => 'string', 'Liste__nom' => 'string', 'Liste.nom' => 'string', 'nom' => 'string', 'Liste__prenom' => 'string', 'Liste.prenom' => 'string', 'prenom' => 'string', 'Liste__adresse' => 'string', 'Liste.adresse' => 'string', 'adresse' => 'string', 'Liste__adresse2' => 'string', 'Liste.adresse2' => 'string', 'adresse2' => 'string', 'Liste__cp' => 'integer', 'Liste.cp' => 'integer', 'cp' => 'integer', 'Liste__cp2' => 'integer', 'Liste.cp2' => 'integer', 'cp2' => 'integer', 'Liste__ville' => 'string', 'Liste.ville' => 'string', 'ville' => 'string', 'Liste__ville2' => 'string', 'Liste.ville2' => 'string', 'ville2' => 'string', 'Liste__tel' => 'string', 'Liste.tel' => 'string', 'tel' => 'string', 'Liste__tel2' => 'string', 'Liste.tel2' => 'string', 'tel2' => 'string', 'Liste__mobile' => 'string', 'Liste.mobile' => 'string', 'mobile' => 'string', 'Liste__fax' => 'string', 'Liste.fax' => 'string', 'fax' => 'string', 'Liste__texte' => 'text', 'Liste.texte' => 'text', 'texte' => 'text', 'Liste__site' => 'string', 'Liste.site' => 'string', 'site' => 'string', 'Liste__mail' => 'string', 'Liste.mail' => 'string', 'mail' => 'string', 'Liste__redirection_mail' => 'string', 'Liste.redirection_mail' => 'string', 'redirection_mail' => 'string', 'Liste__logo' => 'string', 'Liste.logo' => 'string', 'logo' => 'string', 'Liste__photo0' => 'string', 'Liste.photo0' => 'string', 'photo0' => 'string', 'Liste__photo1' => 'string', 'Liste.photo1' => 'string', 'photo1' => 'string', 'Liste__photo2' => 'string', 'Liste.photo2' => 'string', 'photo2' => 'string', 'Liste__photo3' => 'string', 'Liste.photo3' => 'string', 'photo3' => 'string', 'Liste__slider0' => 'string', 'Liste.slider0' => 'string', 'slider0' => 'string', 'Liste__slider1' => 'string', 'Liste.slider1' => 'string', 'slider1' => 'string', 'Liste__slider2' => 'string', 'Liste.slider2' => 'string', 'slider2' => 'string', 'Liste__presentation' => 'text', 'Liste.presentation' => 'text', 'presentation' => 'text', 'Liste__reso_social_type' => 'string', 'Liste.reso_social_type' => 'string', 'reso_social_type' => 'string', 'Liste__facebook' => 'string', 'Liste.facebook' => 'string', 'facebook' => 'string', 'Liste__twitter' => 'string', 'Liste.twitter' => 'string', 'twitter' => 'string', 'Liste__youtube' => 'string', 'Liste.youtube' => 'string', 'youtube' => 'string', 'Liste__instagram' => 'string', 'Liste.instagram' => 'string', 'instagram' => 'string', 'Liste__linkedin' => 'string', 'Liste.linkedin' => 'string', 'linkedin' => 'string', 'Liste__login' => 'string', 'Liste.login' => 'string', 'login' => 'string', 'Liste__mdp' => 'string', 'Liste.mdp' => 'string', 'mdp' => 'string', 'Liste__cotisation' => 'date', 'Liste.cotisation' => 'date', 'cotisation' => 'date', 'Liste__cotisation_website' => 'date', 'Liste.cotisation_website' => 'date', 'cotisation_website' => 'date', 'Liste__gabarit_selection' => 'date', 'Liste.gabarit_selection' => 'date', 'gabarit_selection' => 'date', 'Liste__service_web_key' => 'integer', 'Liste.service_web_key' => 'integer', 'service_web_key' => 'integer', 'Liste__cotisation_service_web' => 'date', 'Liste.cotisation_service_web' => 'date', 'cotisation_service_web' => 'date', 'Liste__website' => 'boolean', 'Liste.website' => 'boolean', 'website' => 'boolean', 'Liste__membre_partenaire' => 'boolean', 'Liste.membre_partenaire' => 'boolean', 'membre_partenaire' => 'boolean', 'Liste__parrain_id' => 'integer', 'Liste.parrain_id' => 'integer', 'parrain_id' => 'integer', 'Liste__website_online' => 'boolean', 'Liste.website_online' => 'boolean', 'website_online' => 'boolean', 'Liste__rib' => 'string', 'Liste.rib' => 'string', 'rib' => 'string', 'Liste__autorisation' => 'boolean', 'Liste.autorisation' => 'boolean', 'autorisation' => 'boolean', 'Liste__created' => 'date', 'Liste.created' => 'date', 'Liste__actif' => 'tinyinteger', 'Liste.actif' => 'tinyinteger', 'actif' => 'tinyinteger', 'Liste__viessmann_client_id' => 'string', 'Liste.viessmann_client_id' => 'string', 'viessmann_client_id' => 'string', 'Liste__derniere_co' => 'datetime', 'Liste.derniere_co' => 'datetime', 'derniere_co' => 'datetime', 'Dirigeant__id' => 'integer', 'Dirigeant.id' => 'integer', 'Dirigeant__type' => 'string', 'Dirigeant.type' => 'string', 'type' => 'string', 'Dirigeant__fonction' => 'string', 'Dirigeant.fonction' => 'string', 'fonction' => 'string', 'Dirigeant__nom' => 'string', 'Dirigeant.nom' => 'string', 'Dirigeant__prenom' => 'string', 'Dirigeant.prenom' => 'string', 'Dirigeant__login' => 'string', 'Dirigeant.login' => 'string', 'Dirigeant__password' => 'string', 'Dirigeant.password' => 'string', 'password' => 'string', 'Dirigeant__mail' => 'string', 'Dirigeant.mail' => 'string', 'Dirigeant__tel' => 'string', 'Dirigeant.tel' => 'string', 'Dirigeant__photo' => 'string', 'Dirigeant.photo' => 'string', 'Dirigeant__liste_id' => 'integer', 'Dirigeant.liste_id' => 'integer', 'liste_id' => 'integer', 'Dirigeant__fabricant_id' => 'integer', 'Dirigeant.fabricant_id' => 'integer', 'fabricant_id' => 'integer', 'Dirigeant__droit' => 'string', 'Dirigeant.droit' => 'string', 'droit' => 'string', 'Dirigeant__all_mails' => 'boolean', 'Dirigeant.all_mails' => 'boolean', 'all_mails' => 'boolean', 'Dirigeant__actif' => 'tinyinteger', 'Dirigeant.actif' => 'tinyinteger', 'Adresses__id' => 'integer', 'Adresses.id' => 'integer', 'Adresses__adresse' => 'string', 'Adresses.adresse' => 'string', 'Adresses__cp' => 'string', 'Adresses.cp' => 'string', 'Adresses__ville' => 'string', 'Adresses.ville' => 'string', 'Adresses__x' => 'smallinteger', 'Adresses.x' => 'smallinteger', 'Adresses__y' => 'smallinteger', 'Adresses.y' => 'smallinteger', 'Adresses__lat' => 'decimal', 'Adresses.lat' => 'decimal', 'lat' => 'decimal', 'Adresses__lng' => 'decimal', 'Adresses.lng' => 'decimal', 'lng' => 'decimal', 'Adresses__tel' => 'string', 'Adresses.tel' => 'string', 'Adresses__mobile' => 'string', 'Adresses.mobile' => 'string', 'AvisRealisations__id' => 'integer', 'AvisRealisations.id' => 'integer', 'AvisRealisations__client_id' => 'integer', 'AvisRealisations.client_id' => 'integer', 'client_id' => 'integer', 'AvisRealisations__artisan_id' => 'integer', 'AvisRealisations.artisan_id' => 'integer', 'artisan_id' => 'integer', 'AvisRealisations__realisation_id' => 'integer', 'AvisRealisations.realisation_id' => 'integer', 'realisation_id' => 'integer', 'AvisRealisations__date' => 'date', 'AvisRealisations.date' => 'date', 'date' => 'date', 'AvisRealisations__type' => 'string', 'AvisRealisations.type' => 'string', 'AvisRealisations__contenu' => 'text', 'AvisRealisations.contenu' => 'text', 'contenu' => 'text', 'AvisRealisations__note' => 'tinyinteger', 'AvisRealisations.note' => 'tinyinteger', 'note' => 'tinyinteger', 'AvisRealisations__diffusion' => 'boolean', 'AvisRealisations.diffusion' => 'boolean', 'diffusion' => 'boolean', 'AvisRealisations__client_autorisation' => 'boolean', 'AvisRealisations.client_autorisation' => 'boolean', 'AvisRealisations__mail_send' => 'boolean', 'AvisRealisations.mail_send' => 'boolean', 'mail_send' => 'boolean' ], 'decorators' => (int) 1, 'executed' => true, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [ 'Liste' => [ 'Dirigeant' => [[maximum depth reached]], 'Adresses' => [[maximum depth reached]] ], 'AvisRealisations' => [ 'queryBuilder' => object(Closure) {} ] ], 'matching' => [], 'extraOptions' => [ 'scope' => null, 'sort' => null, 'whitelist' => [ (int) 0 => 'limit', (int) 1 => 'sort', (int) 2 => 'page', (int) 3 => 'direction' ] ], 'repository' => object(App\Model\Table\References2Table) { 'registryAlias' => 'References2', 'table' => 'references2', 'alias' => 'References2', 'entityClass' => '\Cake\ORM\Entity', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...array_values($request->getParam('pass'))); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
'36'
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\MetiersController) { _jsVars => [] name => 'Metiers' helpers => [] request => object(Cake\Http\ServerRequest) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [[maximum depth reached]] cookies => [[maximum depth reached]] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } paginate => [ 'limit' => (int) 15, 'page' => (int) 8 ] autoRender => true components => [] View => null plugin => null passedArgs => [ (int) 0 => '36' ] modelClass => 'Metiers' viewClass => null viewVars => [] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } [protected] _responseClass => 'Cake\Http\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\MetiersController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [ [maximum depth reached] ] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
* @return \Psr\Http\Message\ResponseInterface |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
return $this->getDispatcher()->dispatch($request, $response); |
|
} |
|
|
|
/** |
|
* Get the ActionDispatcher. |
object(Cake\Http\ServerRequest) { params => [ 'slug' => 'construction-en-bois', 'id' => '36', 'page' => '8', 'pass' => [ (int) 0 => '36' ], 'controller' => 'Metiers', 'action' => 'show', 'plugin' => null, '_matchedRoute' => '/metiers/:slug-:id/p/:page', '_ext' => null, 'isAjax' => false, 'paging' => [ 'References2' => [ [maximum depth reached] ] ] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'slug' => 'construction-en-bois', 'id' => '36', 'page' => '8', 'pass' => [ (int) 0 => '36' ], 'controller' => 'Metiers', 'action' => 'show', 'plugin' => null, '_matchedRoute' => '/metiers/:slug-:id/p/:page', '_ext' => null, 'isAjax' => false, 'paging' => [ 'References2' => [ [maximum depth reached] ] ] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $next($request, $response); |
|
} |
|
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
object(Cake\Http\ServerRequest) { params => [ 'slug' => 'construction-en-bois', 'id' => '36', 'page' => '8', 'pass' => [ (int) 0 => '36' ], 'controller' => 'Metiers', 'action' => 'show', 'plugin' => null, '_matchedRoute' => '/metiers/:slug-:id/p/:page', '_ext' => null, 'isAjax' => false, 'paging' => [ 'References2' => [ [maximum depth reached] ] ] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'slug' => 'construction-en-bois', 'id' => '36', 'page' => '8', 'pass' => [ (int) 0 => '36' ], 'controller' => 'Metiers', 'action' => 'show', 'plugin' => null, '_matchedRoute' => '/metiers/:slug-:id/p/:page', '_ext' => null, 'isAjax' => false, 'paging' => [ 'References2' => [ [maximum depth reached] ] ] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false, 'post' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $next($request, $response); |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request, $response); |
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $response); |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
throw new RuntimeException('The application `middleware` method did not return a middleware queue.'); |
|
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'metiers/construction-en-bois-36/p/8' base => '' webroot => '/' here => '/metiers/construction-en-bois-36/p/8' trustProxy => false [protected] _environment => [ 'USER' => 'reseauec', 'HOME' => '/home/reseauec', 'SCRIPT_NAME' => '/webroot/index.php', 'REQUEST_URI' => '/metiers/construction-en-bois-36/p/8', 'QUERY_STRING' => '', 'REQUEST_METHOD' => 'GET', 'SERVER_PROTOCOL' => 'HTTP/2.0', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REDIRECT_URL' => '/webroot/metiers/construction-en-bois-36/p/8', 'REMOTE_PORT' => '41478', 'SCRIPT_FILENAME' => '/home/reseauec/www/webroot/index.php', 'SERVER_ADMIN' => '[no address given]', 'CONTEXT_DOCUMENT_ROOT' => '/home/reseauec/www', 'CONTEXT_PREFIX' => '', 'REQUEST_SCHEME' => 'https', 'DOCUMENT_ROOT' => '/home/reseauec/www', 'REMOTE_ADDR' => '18.206.83.160', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '54.36.38.55', 'SERVER_NAME' => 'www.reseau-proeco-energies.fr', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_SIGNATURE' => '<address>Apache Server at www.reseau-proeco-energies.fr Port 443</address> ', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'HTTP_HOST' => 'www.reseau-proeco-energies.fr', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'proxy-nokeepalive' => '1', 'SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'HTTPS' => 'on', 'H2_STREAM_TAG' => '29313-13314-3', 'H2_STREAM_ID' => '3', 'H2_PUSHED_ON' => '', 'H2_PUSHED' => '', 'H2_PUSH' => 'off', 'H2PUSH' => 'off', 'HTTP2' => 'on', 'REDIRECT_STATUS' => '200', 'REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_H2_PUSHED' => '', 'REDIRECT_H2_PUSH' => 'off', 'REDIRECT_H2PUSH' => 'off', 'REDIRECT_HTTP2' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.reseau-proeco-energies.fr', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_H2_STREAM_TAG' => '29313-13314-3', 'REDIRECT_REDIRECT_H2_STREAM_ID' => '3', 'REDIRECT_REDIRECT_H2_PUSHED_ON' => '', 'REDIRECT_REDIRECT_H2_PUSHED' => '', 'REDIRECT_REDIRECT_H2_PUSH' => 'off', 'REDIRECT_REDIRECT_H2PUSH' => 'off', 'REDIRECT_REDIRECT_HTTP2' => 'on', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711661.9569, 'REQUEST_TIME' => (int) 1711711661, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.reseau-proeco-energies.fr' [private] port => null [private] path => '/metiers/construction-en-bois-36/p/8' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => false [protected] _lifetime => '7200' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application |
|
// and emit the response. |
|
$server->emit($server->run()); |
|
|
No arguments
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table" instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
Please try correcting the issue for the following table aliases:
If you want to customize this error message, create src/Template/Error/error400.ctp