This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include('./src/jackalope/autoloader.php'); | |
$user = 'admin'; | |
$pass = 'admin'; | |
$workspace = 'default'; | |
$cred = new \PHPCR\SimpleCredentials($user, $pass); | |
$repo = new \jackalope\Repository('http://localhost:8080/server', null); //let jackalope factory create the transport |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'AWSSDKforPHP/sdk.class.php'; | |
// Instantiate the AmazonEC2 class | |
$ec2 = new AmazonEC2(); | |
$ec2->set_region(AmazonEC2::REGION_EU_W1); | |
$resp = $ec2->describe_instances(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Application/ImportBundle/Component/Article.php b/src/Application/ImportBundle/Component/Article.php | |
index 9d42333..0342f72 100644 | |
--- a/src/Application/ImportBundle/Component/Article.php | |
+++ b/src/Application/ImportBundle/Component/Article.php | |
@@ -262,7 +262,8 @@ class Article | |
*/ | |
protected function normalizeDescription($text) | |
{ | |
- $text = html_entity_decode($text); | |
+ $text = "<![CDATA[".$text. "]]>";; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Jackalope/Transport/Davex/Client.php b/src/Jackalope/Transport/Davex/Client.php | |
index ce77994..045b45f 100644 | |
--- a/src/Jackalope/Transport/Davex/Client.php | |
+++ b/src/Jackalope/Transport/Davex/Client.php | |
@@ -143,7 +143,6 @@ class Client implements TransportInterface | |
} | |
$uri = $this->normalizeUri($uri); | |
- | |
$request = new Request($this->curl, $method, $uri); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/twig/lib/Twig/Template.php b/vendor/twig/lib/Twig/Template.php | |
index e53cf96..93343b8 100644 | |
--- a/vendor/twig/lib/Twig/Template.php | |
+++ b/vendor/twig/lib/Twig/Template.php | |
@@ -278,6 +278,12 @@ abstract class Twig_Template implements Twig_TemplateInterface | |
} elseif (isset(self::$cache[$class]['methods']['__call'])) { | |
$method = $item; | |
} else { | |
+ if ($parent = $object->getParent($arguments)) { | |
+ if ($ret = $parent->getAttribute($parent,$item,$arguments,$type,$noStrictCheck,$line)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java | |
index 7ba58ab..2bdbc92 100644 | |
--- jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java | |
+++ jackrabbit-core/src/main/java/org/apache/jackrabbit/core/journal/DatabaseJournal.java | |
@@ -125,12 +125,24 @@ public class DatabaseJournal extends AbstractJournal implements DatabaseAware { | |
*/ | |
private String dataSourceName; | |
+ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$start = microtime(true); | |
include('./src/Jackalope/autoloader.php'); | |
function getJRSession($name="default") { | |
global $start; | |
$server = "http://127.0.0.1:8080/server"; | |
$user = 'admin'; | |
$pass = 'admin'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$start = microtime(true); | |
include('./src/Jackalope/autoloader.php'); | |
function getJRSession($name="default") { | |
global $start; | |
$server = "http://127.0.0.1:8080/server"; | |
$user = 'admin'; | |
$pass = 'admin'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Jackalope/NamespaceRegistry.php b/src/Jackalope/NamespaceRegistry.php | |
index ce806d4..9aa6da7 100644 | |
--- a/src/Jackalope/NamespaceRegistry.php | |
+++ b/src/Jackalope/NamespaceRegistry.php | |
@@ -34,7 +34,7 @@ class NamespaceRegistry implements \IteratorAggregate, \PHPCR\NamespaceRegistryI | |
* Set of namespaces registered by the user. | |
* @var array | |
*/ | |
- protected $userNamespaces = array(); | |
+ protected $userNamespaces = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Jackalope/NamespaceRegistry.php b/src/Jackalope/NamespaceRegistry.php | |
index ce806d4..9aa6da7 100644 | |
--- a/src/Jackalope/NamespaceRegistry.php | |
+++ b/src/Jackalope/NamespaceRegistry.php | |
@@ -34,7 +34,7 @@ class NamespaceRegistry implements \IteratorAggregate, \PHPCR\NamespaceRegistryI | |
* Set of namespaces registered by the user. | |
* @var array | |
*/ | |
- protected $userNamespaces = array(); | |
+ protected $userNamespaces = null; |
OlderNewer