我試圖做一個簡單的依賴關係'mapper',我不認爲我甚至可以把它稱爲依賴注入器...所以我試圖做出下面的最小概念驗證。我的index.php頁面,我有以下的 ... // >>> psr-4 autoloader here
// instantiating the container
$container = new Container;
// getting an instance
我已將Python 2.7例程更改爲接受文件路徑作爲例程的參數,因此我不必通過在方法內插入多個文件路徑來複制代碼。 當我的方法被調用時,我得到以下錯誤: looks like a filename, not markup. You should probably open this file and pass the filehandle into Beautiful Soup.
'"%